{"action":"opened","issue":{"url":"https://api.github.com/repos/andremm/typedlua/issues/36","labels_url":"https://api.github.com/repos/andremm/typedlua/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/andremm/typedlua/issues/36/comments","events_url":"https://api.github.com/repos/andremm/typedlua/issues/36/events","html_url":"https://github.com/andremm/typedlua/issues/36","id":56155196,"number":36,"title":"OO new() signature","user":{"login":"raould","id":77176,"avatar_url":"https://avatars.githubusercontent.com/u/77176?v=3","gravatar_id":"","url":"https://api.github.com/users/raould","html_url":"https://github.com/raould","followers_url":"https://api.github.com/users/raould/followers","following_url":"https://api.github.com/users/raould/following{/other_user}","gists_url":"https://api.github.com/users/raould/gists{/gist_id}","starred_url":"https://api.github.com/users/raould/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raould/subscriptions","organizations_url":"https://api.github.com/users/raould/orgs","repos_url":"https://api.github.com/users/raould/repos","events_url":"https://api.github.com/users/raould/events{/privacy}","received_events_url":"https://api.github.com/users/raould/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-01T07:12:56Z","updated_at":"2015-02-01T07:12:56Z","closed_at":null,"body":"When I tried to make a small example of it, I couldn't repro it. The general jist is that I'm trying to make a Class basically, like how the Shape interface is used to make a Class of sorts. But I get an error about the new() function.\r\ne.g.\r\nplayer.tl:25:26: type error, return type '(self, nil*)' does not match '(self)'\r\nvs.\r\ninterace Player { const new:(number, any, any) => (self) }\r\nconst function Player:new(size:number, drawer:any, worlddb:any) : self -- this is line 25 per error above.\r\nend"}}