dmd/compiler/test/fail_compilation/ice8100.d
Nick Treleaven 56b14c11ff
Show type location for 'no property' error (#15586)
* Show type location for 'no property' error

* Remove local path from test output
2023-09-08 16:44:42 +03:00

13 lines
421 B
D

/*
TEST_OUTPUT:
---
fail_compilation/ice8100.d(11): Error: no property `Q` for type `ice8100.Bar!bool`
fail_compilation/ice8100.d(12): class `Bar` defined here
fail_compilation/ice8100.d(12): Error: template instance `ice8100.Foo!(Bar!bool)` error instantiating
fail_compilation/ice8100.d(13): instantiated from here: `Bar!bool`
---
*/
class Foo(T1) { T1.Q r; }
class Bar(T2) : Foo!(Bar!T2) {}
Bar!bool b;