Browse Source

Test magic methods.

pull/50/head
Rafal Kupiec 3 years ago
parent
commit
c2b3cc1a2f
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
  1. 16
      tests/magic_method.aer
  2. 1
      tests/magic_method.exp

16
tests/magic_method.aer

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

@ -0,0 +1 @@
I am a dog!
Loading…
Cancel
Save