feat: do not include ? type in error messages

This commit is contained in:
Gleb Koval 2025-02-07 14:24:16 +00:00
parent 3430299847
commit 88ddca2b98
Signed by: cyclane
GPG Key ID: 15E168A8B332382C

View File

@ -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>"
}
}