diff options
Diffstat (limited to 'test/files/pos/t3837.scala')
-rw-r--r-- | test/files/pos/t3837.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t3837.scala b/test/files/pos/t3837.scala new file mode 100644 index 0000000000..bcaf63cc8d --- /dev/null +++ b/test/files/pos/t3837.scala @@ -0,0 +1,10 @@ +class BipClass { } +trait BipTrait { + self: BipClass => + + private[this] def foo() = 5 + def bar() = this.foo() +} +// error: value foo is not a member of BipTrait with BipClass +// def bar() = this.foo() +// ^ |