Last active
August 29, 2015 14:27
-
-
Save nuclearace/e1c749729998e3b80093 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
| abstract class Cloneable[T <: Cloneable[T]] { | |
| def clone(original: T): T | |
| } | |
| class TestChild(name: String) extends Cloneable[TestChild] { | |
| def clone(original: TestChild) = { | |
| new TestChild(original.name) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment