ceylon/ceylon-compiler — comment on commit 0cdd865d8fd78eef9087523fd1cbdb2a493b92eb
File: src/com/redhat/ceylon/ceylondoc/ClassOrPackageDoc.java line 59
By thradec:

I see, so this code should be ?

...
Scope declScope;
if( decl instanceof Scope ) {
declScope = (Scope) decl;
}
else {
declScope = decl.getContainer();
}

Declaration targetDecl = resolveDeclaration(declScope, target);
...