{"action":"closed","issue":{"url":"https://api.github.com/repos/munificent/wren/issues/251","labels_url":"https://api.github.com/repos/munificent/wren/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/munificent/wren/issues/251/comments","events_url":"https://api.github.com/repos/munificent/wren/issues/251/events","html_url":"https://github.com/munificent/wren/issues/251","id":66013859,"number":251,"title":"Cannot create new instance from method if class name is lowercase","user":{"login":"krypt-n","id":1621822,"avatar_url":"https://avatars.githubusercontent.com/u/1621822?v=3","gravatar_id":"","url":"https://api.github.com/users/krypt-n","html_url":"https://github.com/krypt-n","followers_url":"https://api.github.com/users/krypt-n/followers","following_url":"https://api.github.com/users/krypt-n/following{/other_user}","gists_url":"https://api.github.com/users/krypt-n/gists{/gist_id}","starred_url":"https://api.github.com/users/krypt-n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krypt-n/subscriptions","organizations_url":"https://api.github.com/users/krypt-n/orgs","repos_url":"https://api.github.com/users/krypt-n/repos","events_url":"https://api.github.com/users/krypt-n/events{/privacy}","received_events_url":"https://api.github.com/users/krypt-n/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-02T21:22:08Z","updated_at":"2015-04-03T08:37:03Z","closed_at":"2015-04-03T08:37:03Z","body":"Hi, the following is a simplified example of unexpected behaviour I encountered\r\n\r\n    class foo {\r\n        test {\r\n            var barz = new foo\r\n            return barz\r\n        }\r\n    }\r\n    var bar = new foo\r\n    bar.test\r\n\r\nwren cli output:\r\n\r\n    foo does not implement 'foo'.\r\n    [test.wr line 3] in test\r\n    [test.wr line 8] in (script)\r\n\r\nwith `'foo'` refering to the constructor call in `test`.\r\n\r\nDefining a constructor of any arity doesnt help.\r\nIs this a bug/undocumented feature or is there a mistake in my example?\r\n\r\n/e updated examples:\r\n\r\n    class foo {\r\n        test {\r\n            new foo\r\n        }\r\n    }\r\n    (new foo).test\r\n\r\nfails in test\r\n\r\n    class Foo {\r\n        test {\r\n            new Foo\r\n        }\r\n    }\r\n    (new Foo).test\r\n\r\nruns without error messages"}}