1--TEST--
2Test typed properties delay type check on constant
3--FILE--
4<?php
5class Foo {
6 public int $bar = BAR::BAZ;
7}
8
9try {
10 $foo = new Foo();
11} catch (Error $e) {
12 echo $e->getMessage(), "\n";
13}
14?>
15--EXPECT--
16Class "BAR" not found
17