Skip to content

Instantly share code, notes, and snippets.

@suisho
Created June 26, 2013 10:16
Show Gist options
  • Save suisho/5866363 to your computer and use it in GitHub Desktop.
Save suisho/5866363 to your computer and use it in GitHub Desktop.
class C {
def call(num:Int):Unit = {
}
}
class X {
type Hoge = { def call(num:Int):Unit;}
def exe(hoge:Hoge, num:Int) = {
hoge.call(num)
}
}
var x = new X();
x.exe(new C(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment