Files
c3c/test/test_suite/distinct/test_errors.c3
Christoffer Lerno df77b692d6 Support "typedef"
2023-02-14 16:49:27 +01:00

11 lines
133 B
C

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