Implemented boolean literals

This commit is contained in:
Eduard Urbach 2025-02-26 14:33:41 +01:00
parent 1f0db51a95
commit bf5110edd4
Signed by: eduard
GPG key ID: 49226B848C78F6C8
11 changed files with 69 additions and 13 deletions

View file

@ -25,8 +25,12 @@ func Is(a Type, b Type) bool {
return true
}
// Temporary hack for implicit casts
if a.Size() > b.Size() {
// Temporary hacks
if a == Int32 && b == Int64 {
return true
}
if a == Int64 && b == Int32 {
return true
}