Advertisement
baksatibi

Untitled

Aug 6th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.19 KB | None | 0 0
  1. class X {
  2.     protected[this] def foo = ()
  3. }
  4.  
  5. class Y extends X {
  6.     def bar = foo   //Ok
  7. }
  8.  
  9. class Z extends X {
  10.     def foo = super.foo //Error: https://issues.scala-lang.org/browse/SI-1352
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement