From 36de85ef43d60e29f4aeb622fb449cabb506e2d8 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Tue, 9 Dec 2014 00:11:32 -0400 Subject: Modules can now contain definitions of simple interfaces, with only method declarations. --- test2.lang | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test2.lang') diff --git a/test2.lang b/test2.lang index f248c3d0d..ecf6a234b 100644 --- a/test2.lang +++ b/test2.lang @@ -12,6 +12,9 @@ (defclass Tagged [[java.lang.String tag] [java.lang.Object data]]) +(definterface Function + (: apply (-> [java.lang.Object] java.lang.Object))) + #( (ann id #type (All [x] (-> [x] x))) )# (def (id x) x) -- cgit v1.2.3