String literal types that are, for example, given directly as function arguments are displayed without quotes in the error output. The following line sums up the issue in an amusing way:
math.abs("number")
Which produces the diagnostic:
t.tl:1:1: type error, attempt to pass '(number)' to field 'abs' of input type '(number)'
So really it should say ("number") to disambiguate from (number).
String literal types that are, for example, given directly as function arguments are displayed without quotes in the error output. The following line sums up the issue in an amusing way:
Which produces the diagnostic:
So really it should say
("number")
to disambiguate from(number)
.