Created
June 10, 2020 20:11
-
-
Save fredemmott/5d2509426f83c054d057456a06a83c75 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
fredemmott@fredemmott-fb /tmp % cat test.hack | |
<<__EntryPoint>> | |
function main(mixed $x): void { | |
$x->:foo; | |
} | |
fredemmott@fredemmott-fb /tmp % hh_single_compile test.hack | |
# test.hack starts here | |
.filepath "test.hack"; | |
.hh_file 1; | |
.main (1,1) { | |
Int 1 | |
RetC | |
} | |
.function {} ["__EntryPoint"("""y:0:{}""")] (2,4) <"HH\\void" N > main(<"HH\\mixed" N > $x) { | |
.srcloc 3:3,3:4; | |
CGetL $x | |
NullUninit | |
NullUninit | |
.srcloc 3:3,3:10; | |
String "foo" | |
.srcloc 3:3,3:10; | |
FCallObjMethodD <> 1 1 "0" - "" "" NullThrows "getAttribute" | |
.srcloc 3:3,3:11; | |
PopC | |
.srcloc 4:2,4:2; | |
Null | |
RetC | |
} | |
# test.hack ends here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment