Added Value type

This commit is contained in:
2025-02-27 14:16:25 +01:00
parent ae6530aadb
commit 9f78733d5d
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
}
}