Browse Source

Fix singleton test.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
c4416ef631
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/singleton_test.aer

+ 1
- 1
tests/singleton_test.aer View File

@ -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