Updating submodules
[hiphop-php.git] / hphp / test / slow / set-profile-reify-async.php
blob297922066ee8961ebe1ebae0e11aa6d67b8ba63f
1 <?hh
3 class C {}
5 async function test<reify T>() {
6 $x = darray[17 => new C()];
7 await RescheduleWaitHandle::create(1, 1);
8 print(json_encode($x[17])."\n");
11 <<__EntryPoint>>
12 async function main() {
13 fb_setprofile(
14 ($mode, $fn, $frame) ==> {
15 $classes = $frame['reified_classes'] ?? null;
16 if ($classes !== null) {
17 print("$mode: ".json_encode($classes)."\n");
20 SETPROFILE_FLAGS_ENTERS|SETPROFILE_FLAGS_RESUME_AWARE,
22 await test<C>();