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 M[T] { | |
| def plus(x:T,y:T): T | |
| def zero: T | |
| } | |
| implicit object IntM extends M[Int] { | |
| def plus(x:Int, y:Int) = x + y | |
| def zero = 0; | |
| } |
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
| /** | |
| * Created by cristipopovici on 12/18/13. | |
| */ | |
| trait LifeCycle { | |
| def startup(): Unit | |
| def shutdown(): Unit | |
| } |
NewerOlder