{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2150","labels_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2150/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2150/comments","events_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2150/events","html_url":"https://github.com/ceylon/ceylon-compiler/issues/2150","id":72892731,"number":2150,"title":"Type inference problem with {element+} and inline if/else","user":{"login":"akberc","id":2241218,"avatar_url":"https://avatars.githubusercontent.com/u/2241218?v=3","gravatar_id":"","url":"https://api.github.com/users/akberc","html_url":"https://github.com/akberc","followers_url":"https://api.github.com/users/akberc/followers","following_url":"https://api.github.com/users/akberc/following{/other_user}","gists_url":"https://api.github.com/users/akberc/gists{/gist_id}","starred_url":"https://api.github.com/users/akberc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akberc/subscriptions","organizations_url":"https://api.github.com/users/akberc/orgs","repos_url":"https://api.github.com/users/akberc/repos","events_url":"https://api.github.com/users/akberc/events{/privacy}","received_events_url":"https://api.github.com/users/akberc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/labels/BUG","name":"BUG","color":"e10c02"}],"state":"closed","locked":false,"assignee":{"login":"FroMage","id":179265,"avatar_url":"https://avatars.githubusercontent.com/u/179265?v=3","gravatar_id":"","url":"https://api.github.com/users/FroMage","html_url":"https://github.com/FroMage","followers_url":"https://api.github.com/users/FroMage/followers","following_url":"https://api.github.com/users/FroMage/following{/other_user}","gists_url":"https://api.github.com/users/FroMage/gists{/gist_id}","starred_url":"https://api.github.com/users/FroMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FroMage/subscriptions","organizations_url":"https://api.github.com/users/FroMage/orgs","repos_url":"https://api.github.com/users/FroMage/repos","events_url":"https://api.github.com/users/FroMage/events{/privacy}","received_events_url":"https://api.github.com/users/FroMage/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/milestones/11","html_url":"https://github.com/ceylon/ceylon-compiler/milestones/1.2","labels_url":"https://api.github.com/repos/ceylon/ceylon-compiler/milestones/11/labels","id":809477,"number":11,"title":"1.2","description":"","creator":{"login":"tombentley","id":879487,"avatar_url":"https://avatars.githubusercontent.com/u/879487?v=3","gravatar_id":"","url":"https://api.github.com/users/tombentley","html_url":"https://github.com/tombentley","followers_url":"https://api.github.com/users/tombentley/followers","following_url":"https://api.github.com/users/tombentley/following{/other_user}","gists_url":"https://api.github.com/users/tombentley/gists{/gist_id}","starred_url":"https://api.github.com/users/tombentley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombentley/subscriptions","organizations_url":"https://api.github.com/users/tombentley/orgs","repos_url":"https://api.github.com/users/tombentley/repos","events_url":"https://api.github.com/users/tombentley/events{/privacy}","received_events_url":"https://api.github.com/users/tombentley/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":264,"state":"open","created_at":"2014-10-01T08:51:07Z","updated_at":"2015-06-04T10:20:12Z","due_on":"2014-11-02T23:00:00Z","closed_at":null},"comments":8,"created_at":"2015-05-04T01:07:49Z","updated_at":"2015-06-04T10:20:37Z","closed_at":"2015-06-04T10:20:12Z","body":"As discussed in https://groups.google.com/forum/#!msg/ceylon-users/LPlNjl_FI-I/49TDijdRC04J\r\n\r\nThis code used to work:\r\n```ceylon\r\n        Boolean hasContent = {\r\n            if (is ContainedMarkup markup,\r\n                markup.containedContent != \"\") true}.first else false;\r\n```\r\n\r\nIt now gives a backend error:\r\n\r\n```\r\nincompatible types\r\n  required: ceylon.language.Boolean\r\n  found:    java.lang.Object\r\n```"},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/comments/108827591","html_url":"https://github.com/ceylon/ceylon-compiler/issues/2150#issuecomment-108827591","issue_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2150","id":108827591,"user":{"login":"FroMage","id":179265,"avatar_url":"https://avatars.githubusercontent.com/u/179265?v=3","gravatar_id":"","url":"https://api.github.com/users/FroMage","html_url":"https://github.com/FroMage","followers_url":"https://api.github.com/users/FroMage/followers","following_url":"https://api.github.com/users/FroMage/following{/other_user}","gists_url":"https://api.github.com/users/FroMage/gists{/gist_id}","starred_url":"https://api.github.com/users/FroMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FroMage/subscriptions","organizations_url":"https://api.github.com/users/FroMage/orgs","repos_url":"https://api.github.com/users/FroMage/repos","events_url":"https://api.github.com/users/FroMage/events{/privacy}","received_events_url":"https://api.github.com/users/FroMage/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T10:20:37Z","updated_at":"2015-06-04T10:20:37Z","body":"OK, I made our test more lenient and it seems to be enough. Thanks."}}