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 anon functions with type constraints
Browse files Browse the repository at this point in the history
Part of #108.
  • Loading branch information
lucaswerkmeister committed Jun 14, 2015
1 parent 820b3df commit 9fc352d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-samples/higherTypes.ceylon
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ value namedArgsInvocWithFunctionArgWithTypeParam = f {
return t;
}
};
value anonymousGenericFunction = <T>(T t) => t;
value anonymousGenericFunction = <T>(T t) given T satisfies Anything => t;
class C() {
parameterizedExpressionWithTypeParams<T>(T t) => t;
}

0 comments on commit 9fc352d

Please sign in to comment.