gcc/testsuite/gdc.test/fail_compilation/traits_parameters.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/traits_parameters.d(9): Error: `__traits(parameters)` cannot have arguments, but `234` was supplied |
| 5 | fail_compilation/traits_parameters.d(10): Error: `__traits(parameters)` may only be used inside a function |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | typeof(__traits(parameters, 234)) xyz; |
| 10 | typeof(__traits(parameters)) x; |