diff options
Diffstat (limited to 'test/pending/pos/moors.scala')
-rw-r--r-- | test/pending/pos/moors.scala | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/pending/pos/moors.scala b/test/pending/pos/moors.scala deleted file mode 100644 index 4f7346f57f..0000000000 --- a/test/pending/pos/moors.scala +++ /dev/null @@ -1,12 +0,0 @@ -object Test { - - implicit def foo2bar(foo :Foo) :Bar = foo.bar - - class Foo(val bar :Bar) { - def testCoercion ={ val a: this.type = this; a.baz /* here, foo2bar is inferred by the compiler, as expected */} - def testCoercionThis = baz // --> error: not found: value baz - def testCoercionThis = (this: Foo).baz // --> error: value baz is not a member of Foo - } - - class Bar { def baz = System.out.println("baz")} -} |