Created
September 27, 2012 09:56
-
-
Save nyuichi/3793221 to your computer and use it in GitHub Desktop.
bug?
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
| class Klass { | |
| function method(x : int) : int { | |
| if (x == 0) { // compiler complains that x is not initialized | |
| return 1; | |
| } | |
| else { | |
| var x = 2; | |
| return x; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment