Files
c3c/test/test_suite/distinct/test_errors.c3
Christoffer Lerno 99cfaa1583 Refactor protocols.
2023-10-06 22:31:41 +02:00

11 lines
125 B
Plaintext

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