summaryrefslogtreecommitdiff
path: root/tests/genie/interface.gs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/genie/interface.gs')
-rw-r--r--tests/genie/interface.gs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/genie/interface.gs b/tests/genie/interface.gs
new file mode 100644
index 000000000..cb90d5cd7
--- /dev/null
+++ b/tests/genie/interface.gs
@@ -0,0 +1,10 @@
+init
+ var a = new Test()
+ assert( a.test(42) )
+
+interface ITest:Object
+ def abstract test( a:int ):bool
+
+class Test:Object implements ITest
+ def test( a:int ):bool
+ return a == 42