mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
12 lines
239 B
D
12 lines
239 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail307.d(11): Error: cannot implicitly convert expression `cast(int)(cast(double)cast(int)b + 6.1)` of type `int` to `short`
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
ubyte b = 6;
|
|
short c5 = cast(int)(b + 6.1);
|
|
}
|