mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Updated casts (#684)
Cast code rework. Remove llvm_set_bool and friends.
This commit is contained in:
committed by
GitHub
parent
e2b4a19c81
commit
f46697bc54
13
test/test_suite/vector/vector_to_array_fail.c3
Normal file
13
test/test_suite/vector/vector_to_array_fail.c3
Normal file
@@ -0,0 +1,13 @@
|
||||
module test;
|
||||
import std::io;
|
||||
fn void main()
|
||||
{
|
||||
int[<2>] x = { 4, 7 };
|
||||
int[2] y = x;
|
||||
int[*] y1 = y;
|
||||
int[*] y2 = x;
|
||||
int[<*>] z = x;
|
||||
int[<*>] w = y;
|
||||
double[<2>] ww = x;
|
||||
double[<2>] www = y; // #error: 'int[2]' to 'double[<2>]'
|
||||
}
|
||||
Reference in New Issue
Block a user