ceylon/ceylon-compiler — Issue #323: qualified inner class constructor throws an error
Author: FroMage
Created: 2012-01-16 13:00:08+00:00
State: open
Labels: BUG

If I try `Outer.Inner inner = outer.Inner();` I get this exception:

```

java.lang.ClassCastException: com.redhat.ceylon.compiler.typechecker.tree.Tree$QualifiedTypeExpression cannot be cast to com.redhat.ceylon.compiler.typechecker.tree.Tree$QualifiedMemberExpression
at com.redhat.ceylon.compiler.java.codegen.ExpressionTransformer$4.transform(ExpressionTransformer.java:1186)
at com.redhat.ceylon.compiler.java.codegen.ExpressionTransformer.transformMemberExpression(ExpressionTransformer.java:1556)
at com.redhat.ceylon.compiler.java.codegen.ExpressionTransformer.transform(ExpressionTransformer.java:1432)
at com.redhat.ceylon.compiler.java.codegen.ExpressionTransformer.transformPrimary(ExpressionTransformer.java:1445)
at com.redhat.ceylon.compiler.java.codegen.ExpressionTransformer.makeInvocation(ExpressionTransformer.java:1178)
at com.redhat.ceylon.compiler.java.codegen.ExpressionTransformer.transformPositionalInvocation(ExpressionTransformer.java:1149)
at com.redhat.ceylon.compiler.java.codegen.ExpressionTransformer.transform(ExpressionTransformer.java:893)
at com.redhat.ceylon.compiler.java.codegen.CeylonVisitor.visit(CeylonVisitor.java:273)
```