Aer/tests/class_instance_arg.aer
belliash 0c2b2c9df5
All checks were successful
The build was successful.
Class instance as argument.
2019-04-10 19:54:05 +02:00

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();
}
}