This commit is contained in:
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();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user