Created
October 4, 2010 09:53
-
-
Save kmizu/609463 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
trait A { | |
def method(){} | |
} | |
class B extends A { | |
def method(){} // Error | |
//A.scala:6: error: overriding method method in trait A of type ()Unit; | |
// method method needs `override' modifier | |
// def method(){} // Error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment