| 1 |
// REQUIRED_ARGS: -o- |
| 2 |
/* |
| 3 |
TEST_OUTPUT: |
| 4 |
---- |
| 5 |
fail_compilation/ice9545.d(14): Error: type `int` has no value |
| 6 |
fail_compilation/ice9545.d(14): perhaps use `int.init` |
| 7 |
---- |
| 8 |
*/ |
| 9 |
|
| 10 |
struct S { template T(X) { alias T = X; } } |
| 11 |
|
| 12 |
void main() |
| 13 |
{ |
| 14 |
auto x1 = S.init.T!int; // ICE |
| 15 |
} |