Added Value type

This commit is contained in:
Eduard Urbach 2025-02-27 14:16:25 +01:00
parent a905710982
commit da6dcc4433
Signed by: eduard
GPG key ID: 49226B848C78F6C8
8 changed files with 65 additions and 34 deletions

View file

@ -27,8 +27,19 @@ func Is(a Type, b Type) bool {
if a == AnyInt {
switch b {
case Int64, Int32, Int16, Int8, UInt64, UInt32, UInt16, UInt8:
case Int64, Int32, Int16, Int8, UInt64, UInt32, UInt16, UInt8, AnyInt:
return true
default:
return false
}
}
if b == AnyInt {
switch a {
case Int64, Int32, Int16, Int8, UInt64, UInt32, UInt16, UInt8, AnyInt:
return true
default:
return false
}
}