Added placeholders for type casts
This commit is contained in:
parent
f87cda97e2
commit
a905710982
19 changed files with 61 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue