From 9fc352d38c2fa3222f146d5e306a6ee01ec81dd6 Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Mon, 15 Jun 2015 00:00:27 +0200 Subject: [PATCH] Add test for anon functions with type constraints Part of #108. --- test-samples/higherTypes.ceylon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-samples/higherTypes.ceylon b/test-samples/higherTypes.ceylon index 480c008..5d35e3f 100644 --- a/test-samples/higherTypes.ceylon +++ b/test-samples/higherTypes.ceylon @@ -8,7 +8,7 @@ value namedArgsInvocWithFunctionArgWithTypeParam = f { return t; } }; -value anonymousGenericFunction = (T t) => t; +value anonymousGenericFunction = (T t) given T satisfies Anything => t; class C() { parameterizedExpressionWithTypeParams(T t) => t; }