Incorrect comparison to default bound fixed

This commit is contained in:
Andrey Breslav
2012-10-17 12:21:10 +04:00
parent 3121f1ad5c
commit ee5b50cb1b
4 changed files with 6 additions and 6 deletions
@@ -176,7 +176,7 @@ public abstract class OverrideImplementMethodsHandler implements LanguageCodeIns
boolean firstUpperBound = true;
for (JetType upperBound : upperBounds) {
String upperBoundText = " : " + renderType(upperBound);
if (upperBound != KotlinBuiltIns.getInstance().getDefaultBound()) {
if (!KotlinBuiltIns.getInstance().getDefaultBound().equals(upperBound)) {
if (firstUpperBound) {
bodyBuilder.append(upperBoundText);
} else {