Test magic methods.
All checks were successful
The build was successful.

This commit is contained in:
Rafal Kupiec 2019-04-08 10:24:32 +02:00
förälder db0bbf713b
incheckning c2b3cc1a2f
Signerad av: belliash
GPG-nyckel ID: 4E829243E0CFE6B4
2 ändrade filer med 17 tillägg och 0 borttagningar

16
tests/magic_method.aer Normal file
Visa fil

@ -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
Visa fil

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