Browse files

Merge branch 'master' of github.com:ceylon/ceylon-spec into comprehen…

…sions
  • Loading branch information...
2 parents e675d54 + cbf2914 commit d94e6c653fe88333c99589766104281dbe05c96d @gavinking gavinking committed May 11, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/com/redhat/ceylon/compiler/typechecker/analyzer/TypeVisitor.java
View
2 src/com/redhat/ceylon/compiler/typechecker/analyzer/TypeVisitor.java
@@ -170,6 +170,7 @@ private String importMember(Tree.ImportMemberOrType member, Package importedPack
if (d==null) {
member.getIdentifier().addError("imported declaration not found: " +
name, 100);
+ unit.getUnresolvedReferences().add(member.getIdentifier());
}
else if (isNonimportable(d)) {
member.getIdentifier().addError("root type may not be imported");
@@ -239,6 +240,7 @@ private void importMember(Tree.ImportMemberOrType member, TypeDeclaration d) {
if (m==null) {
member.getIdentifier().addError("imported declaration not found: " +
name + " of " + d.getName(), 100);
+ unit.getUnresolvedReferences().add(member.getIdentifier());
}
else {
if (!m.isShared()) {

0 comments on commit d94e6c6

Please sign in to comment.