summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/ice8100.d
blob: 1e7d56ba94f494b3254f1c6ebe4bc821019f5b10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/*
TEST_OUTPUT:
---
fail_compilation/ice8100.d(10): Error: no property 'Q' for type 'ice8100.Bar!bool'
fail_compilation/ice8100.d(11): Error: template instance ice8100.Foo!(Bar!bool) error instantiating
fail_compilation/ice8100.d(12):        instantiated from here: Bar!bool
---
*/

class Foo(T1) { T1.Q r; }
class Bar(T2) : Foo!(Bar!T2) {}
Bar!bool b;