Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Change WaitHandle to Awaitable in hack
Summary: - Removed all references to WaitHandle in hphp/hack Reviewed By: jano Differential Revision: D6912972 fbshipit-source-id: ee3ff98b6283217e1b90889c456c3dba1ff8edfe
- Loading branch information
Showing
with
31 additions
and 38 deletions.
- +14 −15 hphp/hack/hhi/classes.hhi
- +0 −4 hphp/hack/hhi/interfaces.hhi
- +1 −1 hphp/hack/src/hhbc/emit_body.ml
- +6 −6 hphp/hack/src/hhbc/emit_type_hint.ml
- +0 −1 hphp/hack/src/parser/hh_autoimport.ml
- +0 −1 hphp/hack/src/parser/namespaces.ml
- +1 −1 hphp/hack/test/typecheck/stdclass_final.php.exp
- +1 −1 hphp/hack/test/typecheck/stdclass_static_members.php.exp
- +1 −1 hphp/hack/test/typecheck/stdclass_strict.php.exp
- +1 −1 hphp/test/quick/xenon/xenon.php
- +2 −2 hphp/test/slow/async/asio_callbacks_io_wait.php
- +1 −1 hphp/test/slow/async/awaitall.php
- +1 −1 hphp/test/slow/async/no-mock.php
- +2 −2 hphp/test/slow/async/return-annotation-8.php
@@ -1,4 +1,4 @@ | ||
File "stdclass_final.php", line 3, characters 7-18: | ||
You cannot extend final class stdClass (Typing[4035]) | ||
File "hhi_lib__srcs/classes.hhi", line 188, characters 13-20: | ||
File "hhi_lib__srcs/classes.hhi", line 187, characters 13-20: | ||
Declaration is here |
@@ -1,4 +1,4 @@ | ||
File "stdclass_static_members.php", line 4, characters 13-23: | ||
Could not find class variable $staticProp in type stdClass (Typing[4090]) | ||
File "hhi_lib__srcs/classes.hhi", line 188, characters 13-20: | ||
File "hhi_lib__srcs/classes.hhi", line 187, characters 13-20: | ||
Declaration of stdClass is here |
@@ -1,4 +1,4 @@ | ||
<?hh | ||
async function f(): WaitHandle {} | ||
async function g(): WaitHandle<void> {} | ||
async function f(): Awaitable {} | ||
async function g(): Awaitable<void> {} | ||
echo "Done\n"; |