3 * Copyright (c) 2014, Facebook, Inc.
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 covariance(ConstMap
<arraykey
, mixed> $x): void
{}
13 function test1(Map
<string, int> $c): ConstMap
<arraykey
, mixed> {
17 function test2(ImmMap
<string, int> $c): ConstMap
<arraykey
, mixed> {
23 public function covariance(ConstMap
<arraykey
, Tv
> $x): void
{}
24 public function test1
<Tu
as Tv
>(Map
<string, Tu
> $c): ConstMap
<arraykey
, Tv
> {
25 $this->covariance($c);
28 public function test2
<Tu
as Tv
>(
30 ): ConstMap
<arraykey
, Tv
> {
31 $this->covariance($c);