No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / test_array15.php
blobeff6a1ff9ea81654584e5a7728cb5e1b8871dbc8
1 <?hh // partial
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 class X {
13 public varray<int> $v = darray[];
15 public function set(int $x): void {
16 $this->v[0] = $x;
20 function test(varray<int> &$x): void {
21 $x[0] = 33;