not all calls invalidate fake members
[hiphop-php.git] / hphp / hack / test / typecheck / fake_members / dont_invalidate_is_null.php
blob6a890bc3e468a6465153b9e7b67e27dc39dfb9fc
1 <?hh // strict
3 class A {
4 public ?int $y;
7 function f(A $x, ?A $y): void {
8 if (!is_null($x->y) && !is_null($y)) {
9 expect_nonnull($x->y);
13 function expect_nonnull(nonnull $x): void {}