Files
c3c/test/test_suite/distinct/test_errors.c3
Christoffer Lerno 3e54d13b62 Prefer def
2023-06-02 20:08:45 +02:00

11 lines
129 B
C

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