gcc/testsuite/gdc.test/fail_compilation/fail161.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail161.d(15): Error: template instance `MetaString!"2 == 1"` does not match template declaration `MetaString(String)` |
| 5 | --- |
| 6 | */ |
| 7 | |
| 8 | template MetaString(String) |
| 9 | { |
| 10 | alias String Value; |
| 11 | } |
| 12 | |
| 13 | void main() |
| 14 | { |
| 15 | alias MetaString!("2 == 1") S; |
| 16 | assert(mixin(S.Value)); |
| 17 | } |