{"action":"created","issue":{"url":"https://api.github.com/repos/ark-lang/ark/issues/591","labels_url":"https://api.github.com/repos/ark-lang/ark/issues/591/labels{/name}","comments_url":"https://api.github.com/repos/ark-lang/ark/issues/591/comments","events_url":"https://api.github.com/repos/ark-lang/ark/issues/591/events","html_url":"https://github.com/ark-lang/ark/issues/591","id":99707606,"number":591,"title":"Throw a compiler error when using a primitive type in a function receiver","user":{"login":"felixangell","id":6254332,"avatar_url":"https://avatars.githubusercontent.com/u/6254332?v=3","gravatar_id":"","url":"https://api.github.com/users/felixangell","html_url":"https://github.com/felixangell","followers_url":"https://api.github.com/users/felixangell/followers","following_url":"https://api.github.com/users/felixangell/following{/other_user}","gists_url":"https://api.github.com/users/felixangell/gists{/gist_id}","starred_url":"https://api.github.com/users/felixangell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixangell/subscriptions","organizations_url":"https://api.github.com/users/felixangell/orgs","repos_url":"https://api.github.com/users/felixangell/repos","events_url":"https://api.github.com/users/felixangell/events{/privacy}","received_events_url":"https://api.github.com/users/felixangell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ark-lang/ark/labels/E-easy","name":"E-easy","color":"bfe5bf"},{"url":"https://api.github.com/repos/ark-lang/ark/labels/P-High","name":"P-High","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-07T18:55:04Z","updated_at":"2015-08-07T22:46:21Z","closed_at":null,"body":"```rust\r\n[c] func printf(fmt: str, ...) -> int;\r\n\r\nfunc (c: int) lol() {\r\n    C::printf(\"fuck u mate %d\\n\", c);\r\n}\r\n\r\nfunc main() -> int {\r\n    x: int = 10;\r\n    x.lol();\r\n    return 0;\r\n}\r\n```\r\n\r\nWill give us a panic because it expects a NamedType, not a PrimitiveType. Instead, we should throw a proper compiler error."},"comment":{"url":"https://api.github.com/repos/ark-lang/ark/issues/comments/128850813","html_url":"https://github.com/ark-lang/ark/issues/591#issuecomment-128850813","issue_url":"https://api.github.com/repos/ark-lang/ark/issues/591","id":128850813,"user":{"login":"MovingtoMars","id":596124,"avatar_url":"https://avatars.githubusercontent.com/u/596124?v=3","gravatar_id":"","url":"https://api.github.com/users/MovingtoMars","html_url":"https://github.com/MovingtoMars","followers_url":"https://api.github.com/users/MovingtoMars/followers","following_url":"https://api.github.com/users/MovingtoMars/following{/other_user}","gists_url":"https://api.github.com/users/MovingtoMars/gists{/gist_id}","starred_url":"https://api.github.com/users/MovingtoMars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MovingtoMars/subscriptions","organizations_url":"https://api.github.com/users/MovingtoMars/orgs","repos_url":"https://api.github.com/users/MovingtoMars/repos","events_url":"https://api.github.com/users/MovingtoMars/events{/privacy}","received_events_url":"https://api.github.com/users/MovingtoMars/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T22:46:21Z","updated_at":"2015-08-07T22:46:21Z","body":"I think I changed it to use a seperate builtin scope a while ago."}}