diff options
Diffstat (limited to 'tests/pos/java-interop/t2413/TestScalac.scala')
-rw-r--r-- | tests/pos/java-interop/t2413/TestScalac.scala | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/pos/java-interop/t2413/TestScalac.scala b/tests/pos/java-interop/t2413/TestScalac.scala new file mode 100644 index 000000000..098e852dd --- /dev/null +++ b/tests/pos/java-interop/t2413/TestScalac.scala @@ -0,0 +1,23 @@ +import pack.TestJava + +class Foo extends TestJava { + + // THIS METHOD YIELDS TO CRASH +/* def foomethod : Option[String] => Unit = { + case None => + val path = repeatParam("s","a","b","c") + () + case Some(error) => + () + } + + // THIS IS OK + def foomethod2 : String = repeatParam("s","a"); + + // THIS IS OK + val aVal = repeatParam("1","2","3") */ + + // THIS YIELDS TO CRASH + for (a <- 1 to 4 ; anotherVal = repeatParam("1","2","3")) + yield anotherVal +} |