Do not add error types as upper bounds in type parameter

#KT-10237 Fixed
 #KT-11821 Fixed
 #KT-8200 Fixed
This commit is contained in:
Denis Zharkov
2016-07-01 17:35:53 +03:00
parent 7723a3a105
commit 60a0cd8cfd
10 changed files with 132 additions and 10 deletions
@@ -126,6 +126,7 @@ public class TypeParameterDescriptorImpl extends AbstractTypeParameterDescriptor
}
private void doAddUpperBound(KotlinType bound) {
if (bound.isError()) return;
upperBounds.add(bound); // TODO : Duplicates?
}