From fd278b1f4705a96d948ac7a2a9d2787946f95894 Mon Sep 17 00:00:00 2001 From: belliash Date: Thu, 30 May 2019 13:08:35 +0200 Subject: [PATCH] Test static class. --- tests/static_class.aer | 11 +++++++++++ tests/static_class.exp | 1 + 2 files changed, 12 insertions(+) create mode 100644 tests/static_class.aer create mode 100644 tests/static_class.exp diff --git a/tests/static_class.aer b/tests/static_class.aer new file mode 100644 index 0000000..86a84a9 --- /dev/null +++ b/tests/static_class.aer @@ -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(); + } +} diff --git a/tests/static_class.exp b/tests/static_class.exp new file mode 100644 index 0000000..9a7e94d --- /dev/null +++ b/tests/static_class.exp @@ -0,0 +1 @@ +This method can be called statically...