{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/6216","repository_url":"https://api.github.com/repos/ceylon/ceylon","labels_url":"https://api.github.com/repos/ceylon/ceylon/issues/6216/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon/issues/6216/comments","events_url":"https://api.github.com/repos/ceylon/ceylon/issues/6216/events","html_url":"https://github.com/ceylon/ceylon/issues/6216","id":149422383,"number":6216,"title":"error building due to bug in JS backend","user":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon/labels/m-compiler-js","name":"m-compiler-js","color":"00aa00"},{"url":"https://api.github.com/repos/ceylon/ceylon/labels/prio-high","name":"prio-high","color":"fbca04"},{"url":"https://api.github.com/repos/ceylon/ceylon/labels/t-bug","name":"t-bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ceylon/ceylon/milestones/15","html_url":"https://github.com/ceylon/ceylon/milestones/1.2.3","labels_url":"https://api.github.com/repos/ceylon/ceylon/milestones/15/labels","id":1590811,"number":15,"title":"1.2.3","description":"","creator":{"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},"open_issues":159,"closed_issues":68,"state":"open","created_at":"2016-02-18T14:05:01Z","updated_at":"2016-04-19T10:50:00Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-04-19T10:50:00Z","updated_at":"2016-04-19T23:10:28Z","closed_at":null,"body":"I get an error building the dist.\r\n\r\n```\r\nceylon.language.js:\r\n     [java] Generating language module compile-time model in JSON...\r\n     [java] Apr 19, 2016 12:46:57 PM com.redhat.ceylon.common.log.JULLogger info\r\n     [java] INFO: [signing jar /Users/gavin/ceylon/language/build/dist/repo/ceylon/language/1.2.3/ceylon.language-1.2.3-model.js into: /Users/gavin/ceylon/language/build/dist/repo/ceylon/language/1.2.3/ceylon.language-1.2.3-model.js.sha1]\r\n     [java] Compiling language module sources: core_functions.js, is-op.js, exists-nonempty.js, type_arithmetic.js, -Anything, Anything.js, Object, Null, Identifiable, Callable, callables.js, dynamic_functions.js\r\n     [java] EXCLUDING ../language/src/ceylon/language/Anything.ceylon\r\n     [java] Compiling language module sources: Basic, Throwable, Exception, Comparison, Iterable, comprehensions.js, -Boolean, Boolean.js, Tuple, tuples.js, impl/\r\n     [java] EXCLUDING ../language/src/ceylon/language/Boolean.ceylon\r\n     [java] java.lang.UnsupportedOperationException: union types don't have well-defined equality\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.UnionType.equals(UnionType.java:175)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.TypeDeclaration$1Criteria.satisfies(TypeDeclaration.java:674)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.Type.getSupertype(Type.java:1558)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.Type.getPrincipalInstantiation(Type.java:1684)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.Type.getSupertype(Type.java:1564)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.TypeDeclaration.isInheritedFromSupertype(TypeDeclaration.java:691)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.TypeDeclaration.getInheritingDeclaration(TypeDeclaration.java:655)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.qualifiedPath(GenerateJsVisitor.java:2468)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.qualifiedPath(GenerateJsVisitor.java:2452)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.qualify(GenerateJsVisitor.java:2444)\r\n     [java] \tat com.redhat.ceylon.compiler.js.util.TypeUtils.encodeForRuntime(TypeUtils.java:948)\r\n     [java] \tat com.redhat.ceylon.compiler.js.util.TypeUtils.encodeForRuntime(TypeUtils.java:769)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addAliasDeclarationToPrototype(GenerateJsVisitor.java:699)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addToPrototype(GenerateJsVisitor.java:1044)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addToPrototype(GenerateJsVisitor.java:949)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator$1.addToPrototypeCallback(TypeGenerator.java:94)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.typeInitialization(TypeGenerator.java:189)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.initializeType(TypeGenerator.java:98)\r\n     [java] \tat com.redhat.ceylon.compiler.js.Singletons.defineObject(Singletons.java:120)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.visit(GenerateJsVisitor.java:1133)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$ObjectExpression.visit(Tree.java:7008)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Walker.walkExpression(Walker.java:1385)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$Expression.visitChildren(Tree.java:6093)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visitAny(Visitor.java:10)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:171)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:243)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:287)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:242)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$Expression.visit(Tree.java:6085)\r\n     [java] \tat com.redhat.ceylon.compiler.js.FunctionHelper.generateLet(FunctionHelper.java:376)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.visit(GenerateJsVisitor.java:3415)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$LetExpression.visit(Tree.java:3479)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Walker.walkExpression(Walker.java:1385)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$Expression.visitChildren(Tree.java:6093)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visitAny(Visitor.java:10)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:171)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:243)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:287)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:242)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$Expression.visit(Tree.java:6085)\r\n     [java] \tat com.redhat.ceylon.compiler.js.FunctionHelper$2.completeFunction(FunctionHelper.java:60)\r\n     [java] \tat com.redhat.ceylon.compiler.js.FunctionHelper.generateParameterLists(FunctionHelper.java:76)\r\n     [java] \tat com.redhat.ceylon.compiler.js.FunctionHelper.singleExprFunction(FunctionHelper.java:48)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.specifierStatement(GenerateJsVisitor.java:2374)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addSpecifierToPrototype(GenerateJsVisitor.java:2383)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addToPrototype(GenerateJsVisitor.java:1042)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addToPrototype(GenerateJsVisitor.java:949)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator$1.addToPrototypeCallback(TypeGenerator.java:94)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.typeInitialization(TypeGenerator.java:189)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.initializeType(TypeGenerator.java:98)\r\n     [java] \tat com.redhat.ceylon.compiler.js.Singletons.defineObject(Singletons.java:120)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.visit(GenerateJsVisitor.java:1133)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$ObjectExpression.visit(Tree.java:7008)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Walker.walkExpression(Walker.java:1385)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$Expression.visitChildren(Tree.java:6093)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visitAny(Visitor.java:10)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:171)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:243)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:287)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:242)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$Expression.visit(Tree.java:6085)\r\n     [java] \tat com.redhat.ceylon.compiler.js.AttributeGenerator.addGetterAndSetterToPrototype(AttributeGenerator.java:290)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addToPrototype(GenerateJsVisitor.java:1030)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addToPrototype(GenerateJsVisitor.java:949)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator$1.addToPrototypeCallback(TypeGenerator.java:94)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.typeInitialization(TypeGenerator.java:189)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.initializeType(TypeGenerator.java:98)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.interfaceDefinition(TypeGenerator.java:367)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.visit(GenerateJsVisitor.java:729)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$InterfaceDefinition.visit(Tree.java:1150)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.visitStatements(GenerateJsVisitor.java:486)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.visit(GenerateJsVisitor.java:408)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$CompilationUnit.visit(Tree.java:22)\r\n     [java] \tat com.redhat.ceylon.compiler.js.JsCompiler.compileUnit(JsCompiler.java:174)\r\n     [java] \tat com.redhat.ceylon.compiler.js.JsCompiler.generate(JsCompiler.java:369)\r\n     [java] \tat com.redhat.ceylon.compiler.js.Stitcher.compileLanguageModule(Stitcher.java:127)\r\n     [java] \tat com.redhat.ceylon.compiler.js.Stitcher.stitch(Stitcher.java:234)\r\n     [java] \tat com.redhat.ceylon.compiler.js.Stitcher.main(Stitcher.java:286)\r\n     [java] java.lang.UnsupportedOperationException: union types don't have well-defined equality\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.UnionType.equals(UnionType.java:175)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.TypeDeclaration$1Criteria.satisfies(TypeDeclaration.java:674)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.Type.getSupertype(Type.java:1558)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.Type.getPrincipalInstantiation(Type.java:1684)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.Type.getSupertype(Type.java:1564)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.TypeDeclaration.isInheritedFromSupertype(TypeDeclaration.java:691)\r\n     [java] \tat com.redhat.ceylon.model.typechecker.model.TypeDeclaration.getInheritingDeclaration(TypeDeclaration.java:655)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.qualifiedPath(GenerateJsVisitor.java:2543)\r\n     [java] \tat com.redhat.ceylon.compiler.js.util.TypeUtils.encodeForRuntime(TypeUtils.java:963)\r\n     [java] \tat com.redhat.ceylon.compiler.js.util.TypeUtils.encodeForRuntime(TypeUtils.java:769)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addAliasDeclarationToPrototype(GenerateJsVisitor.java:699)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addToPrototype(GenerateJsVisitor.java:1044)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addToPrototype(GenerateJsVisitor.java:949)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator$1.addToPrototypeCallback(TypeGenerator.java:94)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.typeInitialization(TypeGenerator.java:189)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.initializeType(TypeGenerator.java:98)\r\n     [java] \tat com.redhat.ceylon.compiler.js.Singletons.defineObject(Singletons.java:120)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.visit(GenerateJsVisitor.java:1133)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$ObjectExpression.visit(Tree.java:7008)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Walker.walkExpression(Walker.java:1385)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$Expression.visitChildren(Tree.java:6093)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visitAny(Visitor.java:10)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:171)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:243)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:287)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:242)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$Expression.visit(Tree.java:6085)\r\n     [java] \tat com.redhat.ceylon.compiler.js.FunctionHelper$2.completeFunction(FunctionHelper.java:60)\r\n     [java] \tat com.redhat.ceylon.compiler.js.FunctionHelper.generateParameterLists(FunctionHelper.java:76)\r\n     [java] \tat com.redhat.ceylon.compiler.js.FunctionHelper.singleExprFunction(FunctionHelper.java:48)\r\n     [java] \tat com.redhat.ceylon.compiler.js.FunctionHelper.methodDeclaration(FunctionHelper.java:232)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addToPrototype(GenerateJsVisitor.java:1026)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.addToPrototype(GenerateJsVisitor.java:949)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator$1.addToPrototypeCallback(TypeGenerator.java:94)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.typeInitialization(TypeGenerator.java:189)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.initializeType(TypeGenerator.java:98)\r\n     [java] \tat com.redhat.ceylon.compiler.js.TypeGenerator.interfaceDefinition(TypeGenerator.java:367)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.visit(GenerateJsVisitor.java:729)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$InterfaceDefinition.visit(Tree.java:1150)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.visitStatements(GenerateJsVisitor.java:486)\r\n     [java] \tat com.redhat.ceylon.compiler.js.GenerateJsVisitor.visit(GenerateJsVisitor.java:408)\r\n     [java] \tat com.redhat.ceylon.compiler.typechecker.tree.Tree$CompilationUnit.visit(Tree.java:22)\r\n     [java] \tat com.redhat.ceylon.compiler.js.JsCompiler.compileUnit(JsCompiler.java:174)\r\n     [java] \tat com.redhat.ceylon.compiler.js.JsCompiler.generate(JsCompiler.java:369)\r\n     [java] \tat com.redhat.ceylon.compiler.js.Stitcher.compileLanguageModule(Stitcher.java:127)\r\n     [java] \tat com.redhat.ceylon.compiler.js.Stitcher.stitch(Stitcher.java:234)\r\n     [java] \tat com.redhat.ceylon.compiler.js.Stitcher.main(Stitcher.java:286)\r\n     [java] Compiling language module sources: Numeric, Integral, Scalable, Number, -Integer, -Float, numbers.js, Array, Empty, sequences.js, String, strings.js\r\n```"},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/comments/212164433","html_url":"https://github.com/ceylon/ceylon/issues/6216#issuecomment-212164433","issue_url":"https://api.github.com/repos/ceylon/ceylon/issues/6216","id":212164433,"user":{"login":"chochos","id":17679,"avatar_url":"https://avatars.githubusercontent.com/u/17679?v=3","gravatar_id":"","url":"https://api.github.com/users/chochos","html_url":"https://github.com/chochos","followers_url":"https://api.github.com/users/chochos/followers","following_url":"https://api.github.com/users/chochos/following{/other_user}","gists_url":"https://api.github.com/users/chochos/gists{/gist_id}","starred_url":"https://api.github.com/users/chochos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chochos/subscriptions","organizations_url":"https://api.github.com/users/chochos/orgs","repos_url":"https://api.github.com/users/chochos/repos","events_url":"https://api.github.com/users/chochos/events{/privacy}","received_events_url":"https://api.github.com/users/chochos/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T23:10:28Z","updated_at":"2016-04-19T23:10:28Z","body":"Yeah the alias inside an anonymous class is what brought it to light."}}