Skip to content
Browse files

eliminate dupes

  • Loading branch information...
1 parent a862fdc commit 90887b6e2af1aacfde79e18739b12e569b597960 @gavinking gavinking committed Jul 24, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/com/redhat/ceylon/compiler/typechecker/model/TypeDeclaration.java
View
8 src/com/redhat/ceylon/compiler/typechecker/model/TypeDeclaration.java
@@ -227,7 +227,9 @@ public ProducedType getType() {
//if ( !(t instanceof TypeParameter) ) { //don't look for members in a type parameter with a self-referential lower bound
for (Declaration d: t.getMembers(name, visited)) {
if (d.isShared() && isResolvable(d)) {
- members.add(d);
+ if (!members.contains(d)) {
+ members.add(d);
+ }
}
}
//}
@@ -236,7 +238,9 @@ public ProducedType getType() {
if (et!=null) {
for (Declaration d: et.getMembers(name, visited)) {
if (d.isShared() && isResolvable(d)) {
- members.add(d);
+ if (!members.contains(d)) {
+ members.add(d);
+ }
}
}
}

0 comments on commit 90887b6

Please sign in to comment.
Something went wrong with that request. Please try again.