mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
20 lines
299 B
D
20 lines
299 B
D
// REQUIRED_ARGS: -de
|
|
|
|
struct Foo { }
|
|
|
|
struct Bar {
|
|
deprecated
|
|
@property Foo foo() { return Foo.init; }
|
|
|
|
alias foo this;
|
|
}
|
|
|
|
void test(Bar bar) { }
|
|
|
|
void main()
|
|
{
|
|
Bar bar;
|
|
|
|
// test lookup will be satisfied via ufcs, not alias, so it must not deprecation warn foo!
|
|
bar.test;
|
|
}
|