{"action":"opened","issue":{"url":"https://api.github.com/repos/ceylon/ceylon.ast/issues/102","labels_url":"https://api.github.com/repos/ceylon/ceylon.ast/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon.ast/issues/102/comments","events_url":"https://api.github.com/repos/ceylon/ceylon.ast/issues/102/events","html_url":"https://github.com/ceylon/ceylon.ast/issues/102","id":117755335,"number":102,"title":"exception converting redhat value constructor","user":{"login":"jvasileff","id":236050,"avatar_url":"https://avatars.githubusercontent.com/u/236050?v=3","gravatar_id":"","url":"https://api.github.com/users/jvasileff","html_url":"https://github.com/jvasileff","followers_url":"https://api.github.com/users/jvasileff/followers","following_url":"https://api.github.com/users/jvasileff/following{/other_user}","gists_url":"https://api.github.com/users/jvasileff/gists{/gist_id}","starred_url":"https://api.github.com/users/jvasileff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvasileff/subscriptions","organizations_url":"https://api.github.com/users/jvasileff/orgs","repos_url":"https://api.github.com/users/jvasileff/repos","events_url":"https://api.github.com/users/jvasileff/events{/privacy}","received_events_url":"https://api.github.com/users/jvasileff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-19T07:06:53Z","updated_at":"2015-11-19T07:06:53Z","closed_at":null,"body":"Attempting to convert\r\n```ceylon\r\n            shared class A {\r\n                shared new instance {}\r\n            }\r\n```\r\nresults in\r\n```\r\nException in thread \"main\" ceylon.language.AssertionError \"Assertion failed\r\n\tviolated is JMissingDeclaration|JTypeDeclaration|JTypedDeclaration|JConstructor|JTypeParameterDeclaration declaration\"\r\n\tat ceylon.ast.redhat.declarationToCeylon_.declarationToCeylon(Declaration.ceylon:21)\r\n\tat ceylon.ast.redhat.declarationOrStatementToCeylon_.declarationOrStatementToCeylon(DeclarationOrStatement.ceylon:20)\r\n\tat ceylon.ast.redhat.classBodyToCeylon_$2.$call$(ClassBody.ceylon)\r\n\tat ceylon.ast.redhat.propagateUpdate_$1.$call$(propagateUpdate.ceylon:16)\r\n\tat ceylon.ast.redhat.propagateUpdate_$1.$call$(propagateUpdate.ceylon:16)\r\n\tat ceylon.language.Iterable$impl$3$1.next(Iterable.ceylon:357)\r\n\tat ceylon.language.Array.createArrayFromIterable(Array.java:157)\r\n\tat ceylon.language.Array.<init>(Array.java:106)\r\n\tat ceylon.language.Iterable$impl.sequence(Iterable.ceylon:251)\r\n\tat ceylon.language.impl.BaseIterable.sequence(bases.ceylon)\r\n\tat ceylon.language.Iterable$impl.collect(Iterable.ceylon:861)\r\n\tat ceylon.language.impl.BaseIterable.collect(bases.ceylon)\r\n\tat ceylon.ast.redhat.classBodyToCeylon_.classBodyToCeylon(ClassBody.ceylon:20)\r\n\tat ceylon.ast.redhat.classDefinitionToCeylon_.classDefinitionToCeylon(ClassDefinition.ceylon:27)\r\n\tat ceylon.ast.redhat.anyClassToCeylon_.anyClassToCeylon(AnyClass.ceylon:18)\r\n\tat ceylon.ast.redhat.classOrInterfaceToCeylon_.classOrInterfaceToCeylon(ClassOrInterface.ceylon:18)\r\n\tat ceylon.ast.redhat.typeDeclarationToCeylon_.typeDeclarationToCeylon(TypeDeclaration.ceylon:18)\r\n\tat ceylon.ast.redhat.declarationToCeylon_.declarationToCeylon(Declaration.ceylon:26)\r\n```\r\nthe Redhat AST is:\r\n```\r\n-- Redhat AST \r\n+  [CompilationUnit] (2:0-4:0)\r\n|  +  [ImportList]\r\n|  + class [ClassDefinition] (2:0-4:0) : class A\r\n|  |  +  [AnnotationList] (2:0-2:5)\r\n|  |  |  +  [Annotation] (2:0-2:5) : SharedAnnotation\r\n|  |  |  |  +  [BaseMemberExpression] (2:0-2:5) : SharedAnnotation() : shared : function shared() => SharedAnnotation\r\n|  |  |  |  |  + shared [Identifier] (2:0-2:5)\r\n|  |  |  |  |  +  [InferredTypeArguments]\r\n|  |  |  |  +  [PositionalArgumentList]\r\n|  |  + A [Identifier] (2:13-2:13)\r\n|  |  + {} [ClassBody] (2:15-4:0)\r\n|  |  |  + new [Enumerated] (3:4-3:25) : value A.instance => A.instance\r\n|  |  |  |  +  [AnnotationList] (3:4-3:9)\r\n|  |  |  |  |  +  [Annotation] (3:4-3:9) : SharedAnnotation\r\n|  |  |  |  |  |  +  [BaseMemberExpression] (3:4-3:9) : SharedAnnotation() : shared : function shared() => SharedAnnotation\r\n|  |  |  |  |  |  |  + shared [Identifier] (3:4-3:9)\r\n|  |  |  |  |  |  |  +  [InferredTypeArguments]\r\n|  |  |  |  |  |  +  [PositionalArgumentList]\r\n|  |  |  |  + instance [Identifier] (3:15-3:22)\r\n|  |  |  |  + {} [Block] (3:24-3:25)\r\n\r\n```"}}