blob: f26b1c4482e0278debbbf69502f1b06610c6d1c0 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/diag9357.d(14): Error: cannot implicitly convert expression `1.00000` of type `double` to `int`
fail_compilation/diag9357.d(15): Error: cannot implicitly convert expression `10.0000` of type `double` to `int`
fail_compilation/diag9357.d(16): Error: cannot implicitly convert expression `11.0000` of type `double` to `int`
fail_compilation/diag9357.d(17): Error: cannot implicitly convert expression `99.0000` of type `double` to `int`
fail_compilation/diag9357.d(18): Error: cannot implicitly convert expression `1.04858e+06L` of type `real` to `int`
fail_compilation/diag9357.d(19): Error: cannot implicitly convert expression `1.04858e+06L` of type `real` to `int`
---
*/
void main()
{
{ int x = 1.0; }
{ int x = 10.0; }
{ int x = 11.0; }
{ int x = 99.0; }
{ int x = 1048575.0L; }
{ int x = 1048576.0L; }
}