Replace EmptyList with list of bottom type #282
Labels
Component: code base
The code quality of the project (does not affect functionality)
Priority: low
Status: blocked
Status: specified
Enhancement that is ready to implement
Type: enhancement
New feature or request
Summary
Replace the type
EmptyListType()
withListType(BottomType())
. Depends on #170.Todo
Reason
It is inelegant to have an edge case for empty lists. This is currently required because lists are not subtypes of each other, but that would be resolved by #170
Implementation
Once subtyping for lists is allowed, replacing
EmptyListType()
withListType(BottomType())
should just work. Explicit checks for empty lists to generate warnings should still work after this replacement.Related issues
The text was updated successfully, but these errors were encountered: