No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / xhp_attr_7.php
blob3089544e6371ec7985a0b1dbe2091db86f36ca75
1 <?hh // strict
2 class :foo {
3 // Typechecker must consider this nullable
4 attribute int x = null;
6 function test1(:foo $obj): int {
7 // Typechecker should detect a mismatch here
8 return $obj->:x;