Closed tombentley closed 9 years ago
No, you misread it. It's only if the last element is variadic that you can't have an EntryType
there. that's because in the language generally, ->
has a lower precedence than *
. The non-variadic elements of a TypeList
are (UnionType | EntryType) "="?
.
Ah, yes you're right. Sorry.
As I read the type abbreviation productions in the spec (§3.2.8.), a
CallableType
can have aTypeList
between the parens which goes viaVariadicType
toUnionType
, thus precluding the possibility of having a callable type with aEntryType
argument. However, the typechecker acceptsBoolean(String->String)
just fine.