☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail298.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/fail298.d
code
plain
raw
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail298.d(12): Error: cannot implicitly convert expression `num1 / cast(ulong)num2` of type `ulong` to `int`
5
---
6
*/
7
8
void main()
9
{
10
ulong num1 = 100;
11
int num2 = 10;
12
int result = num1 / num2;
13
}