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

Commit

Permalink
Add test for type constraints with type parameters
Browse files Browse the repository at this point in the history
For #108.

Apparently, higher *order* types and higher *rank* types are different
things, which we’re both going to support as part of #108, so I invented
the name “higher types” for the test file :)
  • Loading branch information
lucaswerkmeister committed Jun 3, 2015
1 parent ce9050b commit 78a0794
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/test/ceylon/formatter/testSamples.ceylon
Original file line number Diff line number Diff line change
Expand Up @@ -539,3 +539,8 @@ test
shared void testDestructure() {
testFile("destructure");
}

test
shared void testHigherTypes() {
testFile("higherTypes");
}
4 changes: 4 additions & 0 deletions test-samples/higherTypes.ceylon
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
interface SecondOrder<Box>
given Box<Value> {
shared formal Box<Float> createBox(Float float);
}

0 comments on commit 78a0794

Please sign in to comment.