From df50e05006b43b007c2587549030d24b5c154398 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Fri, 16 Dec 2005 18:29:42 +0000 Subject: 'test-nsc' has been moved to 'test'. --- test/files/pos/bug115.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/files/pos/bug115.scala (limited to 'test/files/pos/bug115.scala') diff --git a/test/files/pos/bug115.scala b/test/files/pos/bug115.scala new file mode 100644 index 0000000000..a250e3c090 --- /dev/null +++ b/test/files/pos/bug115.scala @@ -0,0 +1,9 @@ +class S[A](f: A => A, x: A) { + System.out.println(f(x)); +} +class T[B](f: B => B, y: B) extends S(x: B => f(x), y) { +} +object Test extends Application { + new T[Int](x => x * 2, 1); + val f = new S(x: Int => x, 1); +} -- cgit v1.2.3