dmd/compiler/test/fail_compilation/fail9.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

28 lines
396 B
D

/*
TEST_OUTPUT:
---
fail_compilation/fail9.d(24): Error: no property `Vector` for type `fail9.Vector!int`
fail_compilation/fail9.d(13): class `Vector` defined here
---
*/
template Vector(T)
{
int x;
class Vector
{
}
}
struct Sorter
{
}
void Vector_test_int()
{
alias Vector!(int).Vector vector_t;
vector_t v;
Sorter sorter;
v.sort_with!(int)(sorter);
}