dmd/compiler/test/fail_compilation/test23607.d
Boris Carvajal 144c87de86
Fix Issue 23607 - invalid code leading to an ICE due to an error message that's not emitted anymore (#14796)
Small dmd.typesem.resolveHelper refactor by removing many conditions that called helper3 anyway.
2023-01-11 13:22:24 +02:00

16 lines
348 B
D

//https://issues.dlang.org/show_bug.cgi?id=23607
/*
TEST_OUTPUT:
---
fail_compilation/test23607.d(15): Error: template `to(T)()` does not have property `bad`
fail_compilation/test23607.d(16): Error: template `to(T)()` does not have property `bad`
---
*/
template to(T)
{
void to(T)(){}
}
alias comb = to!int.bad!0;
auto combe = to!int.bad!0;