mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 05:30:13 +03:00
Remove references to D1 opDot
(#20772)
This commit is contained in:
parent
e5bd2d06aa
commit
cb31f45e15
4 changed files with 1 additions and 48 deletions
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue