Added placeholders for type casts

This commit is contained in:
Eduard Urbach 2025-02-27 00:18:34 +01:00
parent f87cda97e2
commit a905710982
Signed by: eduard
GPG key ID: 49226B848C78F6C8
19 changed files with 61 additions and 42 deletions

View file

@ -25,13 +25,11 @@ func Is(a Type, b Type) bool {
return true
}
// Temporary hacks
if a == Int32 && b == Int64 {
return true
}
if a == Int64 && b == Int32 {
return true
if a == AnyInt {
switch b {
case Int64, Int32, Int16, Int8, UInt64, UInt32, UInt16, UInt8:
return true
}
}
return false