Created
December 8, 2014 21:30
-
-
Save v6ak/0412debbcb55c5a1852b to your computer and use it in GitHub Desktop.
The methods can't be called from Java directly...
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
% scalac weird.scala && javap X | |
Compiled from "weird.scala" | |
public class X implements scala.ScalaObject { | |
public int 1(); | |
public java.lang.String package(); | |
public java.lang.String class(); | |
public java.lang.String def(); | |
public java.lang.String for(); | |
public java.lang.String while(); | |
public X(); | |
} |
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 X { | |
def `1` = 2 | |
def `package` = "hello" | |
def `class` = "weird" | |
def `def` = "world" | |
def `for` = "!" | |
def `while` = "elhiw" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment