Closed jvasileff closed 9 years ago
By example:
interface Enum<T> of Type1<T, T> {} class Type1<T,U>() satisfies Enum<T> {} shared void caseTypes() { Enum<String> x = Type1<String, Integer>(); switch (x) case (is Type1<String,String>) {} // Exception in thread "main" // com.redhat.ceylon.compiler.java.language.EnumeratedTypeError: // Supposedly exhaustive switch was not exhaustive }
Fixed the bug but need to update the spec to document a new restriction.
Spec updated. Closing.
By example: