mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
27 lines
553 B
D
27 lines
553 B
D
/*
|
|
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");
|