Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
fix #4566
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Nov 29, 2015
1 parent df8b705 commit 3c55e8c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ private void flip() {
check(type, false, null);
}
}
Tree.CaseTypes cts =
that.getCaseTypes();
if (cts!=null) {
for (Tree.Type type: cts.getTypes()) {
//TODO: is "null" really correct here?!
check(type, false, null);
}
}
flip();
parameterizedDeclaration = null;
}
Expand Down
9 changes: 8 additions & 1 deletion typechecker/test/main/cases/enumeratedbounds.ceylon
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@ void testEnumeratedBounds() {
@error Foo<Object>();
}

void brokenEnumBound<O>() @error given O of true|false {}
void brokenEnumBound<O>() @error given O of true|false {}

class Lizt<out Item>() {
shared Item add<in InItem>(InItem i)
@error given InItem of Item {
return i of Item;
}
}

0 comments on commit 3c55e8c

Please sign in to comment.