Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / forbid_await_in_sync_functions5.php
blobb4d16af0eefec15cb44fb5c67696f8c91f581665
1 <?hh // strict
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
12 function char_select(
13 Awaitable<int> $fireboy,
14 Awaitable<Exception> $watergirl,
15 ): void {
16 throw await $watergirl;