Skip to content

Instantly share code, notes, and snippets.

@asm89
Created March 24, 2014 16:34
Show Gist options
  • Save asm89/9743926 to your computer and use it in GitHub Desktop.
Save asm89/9743926 to your computer and use it in GitHub Desktop.
<?hh
function addOne(int $x): int {
return $x + 1;
}
function main() {
addOne(42);
addOne('foo');
}
main();
<?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