Files
c3c/test/test_suite/distinct/test_errors.c3
2021-01-24 21:10:57 +01:00

11 lines
168 B
Plaintext

module test;
typedef int as distinct Int2;
func void test()
{
Int2 a = 1;
a = a + 1;
int b;
a = b; // #error: Cannot implicitly cast 'int' to 'Int2'
}