Created
June 16, 2010 11:57
-
-
Save kmizu/440566 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
def foo() { println("foo") } | |
class A { | |
def bar() { | |
foo | |
} | |
} | |
new A().bar() |
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
object Main { | |
def main(args: Array[String]): Unit = { | |
final class $anon extends scala.AnyRef { | |
def foo(): Unit = scala.this.Predef.println("foo"); | |
class A { | |
def bar(): Unit = $anon.this.foo() | |
} | |
new $anon.this.A().bar() | |
} | |
new $anon(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment