20 lines
193 B
Plaintext
20 lines
193 B
Plaintext
|
class Test1 {
|
||
|
}
|
||
|
|
||
|
class Test2 extends Test1 {
|
||
|
}
|
||
|
|
||
|
class Program {
|
||
|
object $t;
|
||
|
|
||
|
void test(Test1 $t = new Test2) {
|
||
|
$this->t = $t;
|
||
|
var_dump($this->t);
|
||
|
}
|
||
|
|
||
|
void main() {
|
||
|
$this->test();
|
||
|
}
|
||
|
|
||
|
}
|