Created
July 21, 2015 12:49
-
-
Save DarkDimius/13726ebf8b652582abbe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class X { | |
private def foo = 1 | |
} | |
object X { | |
class Inner extends X { | |
override private def foo = 2 | |
} | |
} | |
14:48 14:47 ~/Projects/211x/sandbox (2.11.x)$ s | |
Test.scala:7: error: method foo overrides nothing | |
override private def foo = 2 | |
^ | |
one error found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment