Browse Source

Fix singleton test.

release/v0.1
Rafal Kupiec 3 years ago
parent
commit
c4416ef631
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
  1. 2
      tests/singleton_test.aer

2
tests/singleton_test.aer

@ -5,7 +5,7 @@ final class Test {
}
/* This is singleton */
public object getInstance() {
public static object getInstance() {
static object $instance;
if(!$instance) {
$instance = new Test();

Loading…
Cancel
Save