dmd/compiler/test/fail_compilation/fail23109.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
723 B
D

// https://issues.dlang.org/show_bug.cgi?id=23109
/*
EXTRA_FILES: imports/test23109a.d imports/test23109b.d imports/test23109c.d
EXTRA_SOURCES: extra-files/test23109/object.d
TEST_OUTPUT:
---
Error: no property `getHash` for `typeid(const(Ensure[]))` of type `object.TypeInfo_Const`
fail_compilation/extra-files/test23109/object.d(7): class `TypeInfo_Const` defined here
Error: no property `getHash` for `typeid(const(Ensure[1]))` of type `object.TypeInfo_Const`
fail_compilation/extra-files/test23109/object.d(7): class `TypeInfo_Const` defined here
fail_compilation/imports/test23109a.d(10): Error: template instance `imports.test23109a.Array!(Ensure)` error instantiating
---
*/
import imports.test23109a;