This commit is contained in:
parent
db0bbf713b
commit
c2b3cc1a2f
16
tests/magic_method.aer
Normal file
16
tests/magic_method.aer
Normal 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
1
tests/magic_method.exp
Normal file
@ -0,0 +1 @@
|
||||
I am a dog!
|
Loading…
Reference in New Issue
Block a user