1 // https://issues.dlang.org/show_bug.cgi?id=21259
6 fail_compilation/test21259.d(39): Deprecation: alias `test21259.Foo.width` is deprecated
7 fail_compilation/test21259.d(40): Deprecation: alias `test21259.Foo2.width` is deprecated
8 fail_compilation/test21259.d(41): Deprecation: variable `test21259.Foo3.bar` is deprecated
9 fail_compilation/test21259.d(42): Deprecation: alias `test21259.Foo4.width` is deprecated
16 deprecated alias width
= bar
;
22 deprecated alias width
= bar
;
39 Foo a
= { width
: 100};
40 Foo2 b
= { width
: 100};
41 Foo3 c
= { bar
: 100};
42 Foo4 d
= { width
: 100};
45 // deprecations inside a deprecated scope shouldn't be triggered
46 deprecated void test()
48 Foo a
= { width
: 100};
49 Foo2 b
= { width
: 100};
50 Foo3 c
= { bar
: 100};
51 Foo4 d
= { width
: 100};