Class instance as argument.
ステータスチェックはすべて成功しました
The build was successful.

このコミットが含まれているのは:
2019-04-10 19:54:05 +02:00
コミット 0c2b2c9df5
2個のファイルの変更21行の追加0行の削除

19
tests/class_instance_arg.aer ノーマルファイル
ファイルの表示

@@ -0,0 +1,19 @@
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();
}
}

2
tests/class_instance_arg.exp ノーマルファイル
ファイルの表示

@@ -0,0 +1,2 @@
object(Test2) {
}