Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gdc.test/fail_compilation/fail15550.d @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* TEST_OUTPUT: --- fail_compilation/fail15550.d(25): Error: partial template instance foo!int has no type fail_compilation/fail15550.d(26): Error: partial template instance opDispatch!"_isMatrix" has no type fail_compilation/fail15550.d(27): Error: partial template instance baz!"_isMatrix" has no type --- */ T foo(T, T2)(T2) { } struct Vector { void opDispatch(string, U)(U) { } void baz(string, U)(U) { } } alias T1 = typeof(foo!int); alias T2 = typeof(Vector._isMatrix); alias T3 = typeof(Vector.baz!"_isMatrix");