{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/fletch/issues/19","labels_url":"https://api.github.com/repos/dart-lang/fletch/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/fletch/issues/19/comments","events_url":"https://api.github.com/repos/dart-lang/fletch/issues/19/events","html_url":"https://github.com/dart-lang/fletch/issues/19","id":70117631,"number":19,"title":"Issues with tearoffs","user":{"login":"zerny","id":1126334,"avatar_url":"https://avatars.githubusercontent.com/u/1126334?v=3","gravatar_id":"","url":"https://api.github.com/users/zerny","html_url":"https://github.com/zerny","followers_url":"https://api.github.com/users/zerny/followers","following_url":"https://api.github.com/users/zerny/following{/other_user}","gists_url":"https://api.github.com/users/zerny/gists{/gist_id}","starred_url":"https://api.github.com/users/zerny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerny/subscriptions","organizations_url":"https://api.github.com/users/zerny/orgs","repos_url":"https://api.github.com/users/zerny/repos","events_url":"https://api.github.com/users/zerny/events{/privacy}","received_events_url":"https://api.github.com/users/zerny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"skabet","id":22043,"avatar_url":"https://avatars.githubusercontent.com/u/22043?v=3","gravatar_id":"","url":"https://api.github.com/users/skabet","html_url":"https://github.com/skabet","followers_url":"https://api.github.com/users/skabet/followers","following_url":"https://api.github.com/users/skabet/following{/other_user}","gists_url":"https://api.github.com/users/skabet/gists{/gist_id}","starred_url":"https://api.github.com/users/skabet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skabet/subscriptions","organizations_url":"https://api.github.com/users/skabet/orgs","repos_url":"https://api.github.com/users/skabet/repos","events_url":"https://api.github.com/users/skabet/events{/privacy}","received_events_url":"https://api.github.com/users/skabet/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-04-22T12:56:56Z","updated_at":"2015-04-23T06:25:16Z","closed_at":null,"body":"Currently tearoffs are not considered functions and can not be called without disambiguating the receiver at the call site:\r\n\r\n```dart\r\nclass Foo {\r\n  Function fn;\r\n  Foo() {\r\n    fn = () => 42;\r\n  }\r\n}\r\n\r\nmain() {\r\n  Foo foo = new Foo();\r\n  print(foo.fn is Function); // should print true, currently prints false.\r\n  print((foo.fn)()); // prints 42.\r\n  print(foo.fn()); // results in an error.\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/dart-lang/fletch/issues/comments/95457214","html_url":"https://github.com/dart-lang/fletch/issues/19#issuecomment-95457214","issue_url":"https://api.github.com/repos/dart-lang/fletch/issues/19","id":95457214,"user":{"login":"kasperl","id":2156198,"avatar_url":"https://avatars.githubusercontent.com/u/2156198?v=3","gravatar_id":"","url":"https://api.github.com/users/kasperl","html_url":"https://github.com/kasperl","followers_url":"https://api.github.com/users/kasperl/followers","following_url":"https://api.github.com/users/kasperl/following{/other_user}","gists_url":"https://api.github.com/users/kasperl/gists{/gist_id}","starred_url":"https://api.github.com/users/kasperl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasperl/subscriptions","organizations_url":"https://api.github.com/users/kasperl/orgs","repos_url":"https://api.github.com/users/kasperl/repos","events_url":"https://api.github.com/users/kasperl/events{/privacy}","received_events_url":"https://api.github.com/users/kasperl/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T06:25:16Z","updated_at":"2015-04-23T06:25:16Z","body":"@skabet The patch only solves the 'is Function' part right?"}}