Updated casts (#684)

Cast code rework. Remove llvm_set_bool and friends.
This commit is contained in:
Christoffer Lerno
2022-12-27 14:16:47 +01:00
committed by GitHub
parent e2b4a19c81
commit f46697bc54
72 changed files with 1074 additions and 674 deletions

View 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>]'
}