Created
December 6, 2016 08:55
-
-
Save Shinpeim/1ad85b03c482cb84e2eb603809846256 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 ComponentBuilder[X](a: X, b:X) { | |
class ClassA[X](val v: X) | |
class ClassB[X](val v: X) | |
def buildA = new ClassA(x) | |
def buildB = new ClassB(y) | |
} | |
val b = new ComponentBuilder[Int](1, 2) | |
println(b.buildA.x) | |
println(b.buildB.y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment