Created
March 24, 2014 16:34
-
-
Save asm89/9743926 to your computer and use it in GitHub Desktop.
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
<?hh | |
function addOne(int $x): int { | |
return $x + 1; | |
} | |
function main() { | |
addOne(42); | |
addOne('foo'); | |
} | |
main(); |
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
<?hh | |
function addOne(int $x): int { | |
return $x + 1; | |
} | |
addOne(42); | |
addOne('foo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment