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

14 lines
284 B
D

/*
EXTRA_FILES: imports/a10169.d
TEST_OUTPUT:
---
fail_compilation/diag10169.d(13): Error: no property `x` for `B(0)` of type `imports.a10169.B`
fail_compilation/imports/a10169.d(3): struct `B` defined here
---
*/
import imports.a10169;
void main()
{
auto a = B.init.x;
}