Browse Source

Test static class.

release/v0.1
Rafal Kupiec 2 years ago
parent
commit
fd278b1f47
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
2 changed files with 12 additions and 0 deletions
  1. +11
    -0
      tests/static_class.aer
  2. +1
    -0
      tests/static_class.exp

+ 11
- 0
tests/static_class.aer View File

@ -0,0 +1,11 @@
final virtual class Static {
public void test() {
print('This method can be called statically...');
}
}
final class Program {
public void main() {
Static::test();
}
}

+ 1
- 0
tests/static_class.exp View File

@ -0,0 +1 @@
This method can be called statically...

Loading…
Cancel
Save