diff --git a/src/test/scala/IntegrationTest.scala b/src/test/scala/IntegrationTest.scala index 75925e1..37dee87 100644 --- a/src/test/scala/IntegrationTest.scala +++ b/src/test/scala/IntegrationTest.scala @@ -89,4 +89,11 @@ class IntegrationTest extends FunSuite { assert(result.isRight) println(result.map(it => Main.prettyPrintAST(it))) } + + test("extendsWithComplexType") { + val input = "class Pair extends Object {}\n\nclass Test extends Pair,A> {\n\nm(a){return this;}\n\n\n}" + val result = FJTypeinference.typeinference(input) + assert(result.isRight) + println(result.map(it => Main.prettyPrintAST(it))) + } }