Files
c3c/test/test_suite/distinct/test_errors.c3
2021-11-16 17:46:44 +01:00

11 lines
141 B
C

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