summaryrefslogtreecommitdiff
path: root/test/files/pos/bug616.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/bug616.scala')
-rw-r--r--test/files/pos/bug616.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/pos/bug616.scala b/test/files/pos/bug616.scala
index bb91c732a6..074ad190da 100644
--- a/test/files/pos/bug616.scala
+++ b/test/files/pos/bug616.scala
@@ -1,7 +1,7 @@
object testImplicit {
implicit def foo2bar(foo: Foo): Bar = foo.bar
class Foo(val bar: Bar) {
- def testCoercion = {val a = this; a.baz} // here, foo2bar is inferred by the compiler, as expected
+ def testCoercion = {val a = this; a.baz} // here, foo2bar is inferred by the compiler, as expected
//def testCoercionThisImplicit = baz // --> error: not found: value baz
def testCoercionThisExplicit: Any = this.baz // --> error: value baz is not a member of Foo
}