mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
- Comparing an uint and int[<4>] was incorrectly assumed to be uint compared to int, causing a crash instead of an error. - When an `int[*][6]` was given too few values, the compiler would assert instead of giving an error.
8 lines
203 B
Plaintext
8 lines
203 B
Plaintext
import std;
|
|
fn void main()
|
|
{
|
|
Win32_UINT v1 = 1;
|
|
int[<4>] v2 = 2;
|
|
bool[<4>] vb = (v1 == v2); // #error: 'Win32_UINT' (uint) to 'int[<4>]' is not permitted, but you may do an explicit cast by placing
|
|
}
|