From 0bc0b0bbc65c4ece2be76c62c1dea58d4358a4d4 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 22 May 2008 13:00:42 +0000 Subject: fixed #911. Added comments to <~ and ~> methods. --- test/files/pos/t0905.scala | 6 ++++++ test/files/run/t0911.scala | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/files/pos/t0905.scala create mode 100644 test/files/run/t0911.scala (limited to 'test') diff --git a/test/files/pos/t0905.scala b/test/files/pos/t0905.scala new file mode 100644 index 0000000000..8cd84759cf --- /dev/null +++ b/test/files/pos/t0905.scala @@ -0,0 +1,6 @@ +object Test { + trait A[T] + def f(implicit p: A[T] forSome { type T } ) = null + implicit val x: A[T] forSome { type T } = null + println(f) +} diff --git a/test/files/run/t0911.scala b/test/files/run/t0911.scala new file mode 100644 index 0000000000..f4d93eb571 --- /dev/null +++ b/test/files/run/t0911.scala @@ -0,0 +1,9 @@ +class Foo(val bar : () => String); + +class IP extends { + val baz = "bar"; +} with Foo(() => baz); + +object Main extends Application{ + (new IP).bar(); +} -- cgit v1.2.3