diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-03-17 22:33:15 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-03-18 08:00:10 +0000 |
| commit | cea82209e5aa312f4a513308c148d3e944004cb4 (patch) | |
| tree | 6f7e5fa7bb1656b4650bb227866195f35bc962e0 /src/test/java/org/zwobble/couscous/tests/CompilerTests.java | |
| parent | 5687fd7f88485f95e970b3d93fbf2800e84eb3b8 (diff) | |
Improve support for generics
Diffstat (limited to 'src/test/java/org/zwobble/couscous/tests/CompilerTests.java')
| -rw-r--r-- | src/test/java/org/zwobble/couscous/tests/CompilerTests.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java index 9fbbb73..7e4f2b5 100644 --- a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java +++ b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java @@ -207,6 +207,18 @@ public abstract class CompilerTests { } @Test + public void genericInterfacesCanHaveMethodsWithoutGenericReturnType() throws Exception { + assertEquals( + value("Hello"), + execTestProgram( + "generic-interface-non-generic-methods", + ScalarType.of("com.example.GenericInterface"), + "value", + list(), + StringValue.REF)); + } + + @Test public void staticMethodOverloads() throws Exception { assertEquals( value(42), |
