dmd/compiler/test/fail_compilation/b15069.d
2022-07-09 18:53:07 +02:00

21 lines
355 B
D

/*
TEST_OUTPUT:
---
fail_compilation/b15069.d(15): Error: template instance `T!int` `T` is not a template declaration, it is a alias
fail_compilation/b15069.d(10): Error: template instance `b15069.Stuff!(Thing!float)` error instantiating
---
*/
void main()
{
Stuff!(Thing!(float)) s;
}
struct Stuff(T)
{
T!(int) var;
}
struct Thing(T)
{
T varling;
}