]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/ice8100.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice8100.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice8100.d(10): Error: no property `Q` for type `ice8100.Bar!bool`
5 fail_compilation/ice8100.d(11): Error: template instance `ice8100.Foo!(Bar!bool)` error instantiating
6 fail_compilation/ice8100.d(12): instantiated from here: `Bar!bool`
7 ---
8 */
9
10 class Foo(T1) { T1.Q r; }
11 class Bar(T2) : Foo!(Bar!T2) {}
12 Bar!bool b;