Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created March 28, 2015 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shigemk2/791c88485883556ee422 to your computer and use it in GitHub Desktop.
Save shigemk2/791c88485883556ee422 to your computer and use it in GitHub Desktop.
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