class Foo { init() { return "result"; } } // out: SyntaxError: init() should not return a value Foo();