d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail23109.d
blobee560759e41e97f9e75bced707340d347ddb0140
1 // https://issues.dlang.org/show_bug.cgi?id=23109
2 /*
3 EXTRA_FILES: imports/test23109a.d imports/test23109b.d imports/test23109c.d
4 EXTRA_SOURCES: extra-files/test23109/object.d
5 TEST_OUTPUT:
6 ---
7 Error: no property `getHash` for `typeid(const(Ensure[]))` of type `object.TypeInfo_Const`
8 fail_compilation/extra-files/test23109/object.d(7): class `TypeInfo_Const` defined here
9 Error: no property `getHash` for `typeid(const(Ensure[1]))` of type `object.TypeInfo_Const`
10 fail_compilation/extra-files/test23109/object.d(7): class `TypeInfo_Const` defined here
11 fail_compilation/imports/test23109a.d(10): Error: template instance `imports.test23109a.Array!(Ensure)` error instantiating
12 ---
14 import imports.test23109a;