Merge pull request 'implement-switch-expressions' (#70) from implement-switch-expressions into main
Reviewed-on: #70
This commit is contained in:
commit
6e3125ce62
@ -475,7 +475,7 @@ func isNumeric (ty entity.Type) bool {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// isInteger returns whether or not the specified type is an integer.
|
// isInteger returns whether or not the specified type is an integer or word.
|
||||||
func isInteger (ty entity.Type) bool {
|
func isInteger (ty entity.Type) bool {
|
||||||
switch ReduceToBase(ty).(type) {
|
switch ReduceToBase(ty).(type) {
|
||||||
case *entity.TypeInt, *entity.TypeWord: return true
|
case *entity.TypeInt, *entity.TypeWord: return true
|
||||||