feat: do not include ?
type in error messages
This commit is contained in:
parent
3430299847
commit
88ddca2b98
@ -9,9 +9,11 @@ object types {
|
||||
case KnownType.Bool => "bool"
|
||||
case KnownType.Char => "char"
|
||||
case KnownType.String => "string"
|
||||
case KnownType.Array(?) => "array"
|
||||
case KnownType.Array(elem) => s"$elem[]"
|
||||
case KnownType.Pair(?, ?) => "pair"
|
||||
case KnownType.Pair(left, right) => s"pair($left, $right)"
|
||||
case ? => "?"
|
||||
case ? => "<unknown-type>"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user