Test magic methods.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-04-08 10:24:32 +02:00
parent db0bbf713b
commit c2b3cc1a2f
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 17 additions and 0 deletions

16
tests/magic_method.aer Normal file
View File

@ -0,0 +1,16 @@
class Dog {
void __invoke() {
print("I am a dog!\n");
}
}
class Program {
void main() {
object $dog = new Dog();
$dog();
}
}

1
tests/magic_method.exp Normal file
View File

@ -0,0 +1 @@
I am a dog!