]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
4 | fail_compilation/diag9961.d(11): Error: cannot implicitly convert expression `""` of type `string` to `int` | |
5fee5ec3 | 5 | fail_compilation/diag9961.d(14): Error: template instance `diag9961.foo!int` error instantiating |
b4c522fa | 6 | fail_compilation/diag9961.d(11): Error: cannot implicitly convert expression `""` of type `string` to `int` |
5fee5ec3 | 7 | fail_compilation/diag9961.d(15): Error: template instance `diag9961.foo!char` error instantiating |
b4c522fa IB |
8 | --- |
9 | */ | |
10 | ||
11 | void foo(T)(T) { int x = ""; } | |
12 | void main() | |
13 | { | |
14 | 100.foo(); | |
15 | 'a'.foo; | |
16 | } |