1--TEST--
2Test typed properties basic operation
3--FILE--
4<?php
5var_dump(new class(1, 2.2, true, ["four"], new stdClass) {
6    public int $int;
7    public float $float;
8    public bool $bool;
9    public array $array;
10    public stdClass $std;
11    public iterable $it;
12
13    public function __construct(int $int, float $float, bool $bool, array $array, stdClass $std) {
14        $this->int = $int;
15        $this->float = $float;
16        $this->bool = $bool;
17        $this->array = $array;
18        $this->std = $std;
19        $this->it = $array;
20    }
21});
22?>
23--EXPECTF--
24object(class@anonymous)#%d (6) {
25  ["int"]=>
26  int(1)
27  ["float"]=>
28  float(2.2)
29  ["bool"]=>
30  bool(true)
31  ["array"]=>
32  array(1) {
33    [0]=>
34    string(4) "four"
35  }
36  ["std"]=>
37  object(stdClass)#%d (0) {
38  }
39  ["it"]=>
40  array(1) {
41    [0]=>
42    string(4) "four"
43  }
44}
45