Skip to content

Commit

Permalink
Work around #134
Browse files Browse the repository at this point in the history
Until we properly implement #134, this hack (copied from @jvasileff’s
GitHub comment [1]) at least lets ceylon.ast.redhat compile.

[1]: #134 (comment)
  • Loading branch information
jvasileff authored and lucaswerkmeister committed Sep 28, 2017
1 parent 66ae12e commit 6a557ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/ceylon/ast/redhat/CaseTypes.ceylon
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ shared CaseTypes caseTypesToCeylon(JCaseTypes caseTypes, Anything(JNode, Node) u
(This trick originally comes from ceylon.formatter.)
*/
assert (nonempty cases
= concatenate(CeylonIterable(caseTypes.types), CeylonIterable(caseTypes.baseMemberExpressions))
= concatenate(CeylonIterable(caseTypes.types), CeylonIterable(caseTypes.baseMemberExpressions).narrow<JBaseMemberExpression>())
.sort(byIncreasing(compose(Token.tokenIndex, JNode.token))));
PrimaryType|MemberName primaryTypeOrMemberNameToCeylon(JStaticType|JBaseMemberExpression that, Anything(JNode, Node) update = noop) {
switch (that)
Expand Down

0 comments on commit 6a557ad

Please sign in to comment.