Remove references to D1 opDot (#20772)

This commit is contained in:
Dennis 2025-01-24 12:00:29 +01:00 committed by GitHub
parent e5bd2d06aa
commit cb31f45e15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1 additions and 48 deletions

View file

@ -1,30 +0,0 @@
/*
REQUIRED_ARGS: -de
TEST_OUTPUT:
---
fail_compilation/deprecateopdot.d(27): Error: `opDot` is obsolete. Use `alias this`
fail_compilation/deprecateopdot.d(28): Error: `opDot` is obsolete. Use `alias this`
fail_compilation/deprecateopdot.d(29): Error: `opDot` is obsolete. Use `alias this`
---
*/
struct S6
{
int a, b;
}
struct T6
{
S6 s;
S6* opDot() return
{
return &s;
}
}
void test6()
{
T6 t;
t.a = 4;
assert(t.a == 4);
t.b = 5;
}