From f730e2caf8b62a3acf370e84a243e665fbbc71dd Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Fri, 11 Jun 2010 09:36:16 +0000 Subject: --- test/files/pos/t1254/t1254.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/files/pos/t1254/t1254.java (limited to 'test/files') diff --git a/test/files/pos/t1254/t1254.java b/test/files/pos/t1254/t1254.java new file mode 100644 index 0000000000..17e1c60bf5 --- /dev/null +++ b/test/files/pos/t1254/t1254.java @@ -0,0 +1,28 @@ +/* Taken from ticket #1254. Tests Java signatures in mirror classes and that + Nothing is translated to Nothing$. +*/ + +import scala.None; + +// This compiles with javac but fails with Eclipse java compiler: +// 'The type scala.Nothing cannot be resolved. It is indirectly referenced from required .class files' +class NothingBug3 { + public NothingBug3() { + scala.Option o = scala.None$.MODULE$; + + test(o); + None.toLeft(new scala.runtime.AbstractFunction0() { + public Integer apply() { return 0; } + }); + } + + public void test(scala.Option f) {} +} + +// This compiles with javac but fails with Eclipse java compiler: +// 'The type scala.Nothing cannot be resolved. It is indirectly referenced from required .class files' +class NothingBug4 { + public NothingBug4() { + scala.Option o = scala.None$.MODULE$; + } +} -- cgit v1.2.3