Browse Source

Test magic methods.

pull/50/head
Rafal Kupiec 2 years ago
parent
commit
c2b3cc1a2f
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
2 changed files with 17 additions and 0 deletions
  1. +16
    -0
      tests/magic_method.aer
  2. +1
    -0
      tests/magic_method.exp

+ 16
- 0
tests/magic_method.aer 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
- 0
tests/magic_method.exp View File

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

Loading…
Cancel
Save