Skip to content

Commit

Permalink
FreeClassOrInterface #226: fixed CCE
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Sep 13, 2013
1 parent 27fe735 commit f874656
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public <Type extends Object> ceylon.language.model.ClassOrInterface<Type> apply(
throw new RuntimeException("Cannot apply a member declaration with no container type: use memberApply");
List<com.redhat.ceylon.compiler.typechecker.model.ProducedType> producedTypes = Metamodel.getProducedTypes(typeArguments);
Metamodel.checkTypeArguments(null, declaration, producedTypes);
com.redhat.ceylon.compiler.typechecker.model.ProducedTypedReference appliedType = ((TypedDeclaration) declaration).getProducedTypedReference(null, producedTypes);
com.redhat.ceylon.compiler.typechecker.model.ProducedReference appliedType = declaration.getProducedReference(null, producedTypes);
TypeDescriptor reifiedType = Metamodel.getTypeDescriptorForProducedType(appliedType.getType());
if(declaration instanceof com.redhat.ceylon.compiler.typechecker.model.Interface){
return new AppliedInterface(reifiedType, appliedType.getType(), null, null);
Expand Down

0 comments on commit f874656

Please sign in to comment.