gcc/testsuite/gdc.test/fail_compilation/b15069.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/b15069.d(15): Error: template instance `T!int` `T` is not a template declaration, it is a alias |
| 5 | fail_compilation/b15069.d(10): Error: template instance `b15069.Stuff!(Thing!float)` error instantiating |
| 6 | --- |
| 7 | */ |
| 8 | void main() |
| 9 | { |
| 10 | Stuff!(Thing!(float)) s; |
| 11 | } |
| 12 | |
| 13 | struct Stuff(T) |
| 14 | { |
| 15 | T!(int) var; |
| 16 | } |
| 17 | |
| 18 | struct Thing(T) |
| 19 | { |
| 20 | T varling; |
| 21 | } |