This website works better with JavaScript.
Home
Help
Register
Sign In
AerScript
/
Aer
Watch
0
Star
6
Fork
0
Code
Issues
6
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
Class instance as argument.
pull/50/head
Rafal Kupiec
1 year ago
parent
493fcd0e92
commit
0c2b2c9df5
Signed by:
belliash
GPG Key ID:
4E829243E0CFE6B4
2 changed files
with
21 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+19
-0
tests/class_instance_arg.aer
+2
-0
tests/class_instance_arg.exp
+ 19
- 0
tests/class_instance_arg.aer
View File
@ -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
- 0
tests/class_instance_arg.exp
View File
@ -0,0 +1,2 @@
object(Test2) {
}
Write
Preview
Loading…
Cancel
Save