From 3f1af457c1635778554d0388fdb7b77bd43e0241 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 1 Mar 2016 22:52:14 +0000 Subject: Cobble together limited inner class support --- src/test/java/org/zwobble/couscous/tests/CompilerTests.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/test/java/org') diff --git a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java index 285a51f..3641f33 100644 --- a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java +++ b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java @@ -98,6 +98,18 @@ public abstract class CompilerTests { IntegerValue.REF)); } + @Test + public void innerClasses() throws Exception { + assertEquals( + value(42), + execTestProgram( + "inner-class", + TypeName.of("com.example.InnerClass"), + "run", + list(), + IntegerValue.REF)); + } + @Test public void canImplementUserDefinedInterface() throws Exception { assertEquals( -- cgit v1.2.3