Static or inherited function expected

When you use the member operator on a class name, to the right of the member operator only the name of a static method or an inherited method is allowed. You might have misspelled the name of the method that you are trying to call.

class Test {
  func doSomething()
  endfunc

  static func doStatic()
  endfunc
}

Test.doSomething()  ; Error!
Test.doStatic()     ; OK
Test t = new Test
t.doSomething()     ; OK

See Also
Errors