Files
c3c/test/test_suite/distinct/test_errors.c3
2021-05-23 13:16:48 +02:00

11 lines
166 B
Plaintext

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