Created
March 28, 2015 13:21
-
-
Save shigemk2/791c88485883556ee422 to your computer and use it in GitHub Desktop.
This file contains 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 A { | |
type T = Int | |
def add(x: T, y: T): T = { | |
x + y | |
} | |
} | |
val a = new A() | |
println(a.add(1, 2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment