From f2016c8033ad72f1d3261735b5ee60f90fb583d3 Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Thu, 16 Jul 2015 19:37:16 +0300 Subject: [PATCH] Minor: remove usage of KotlinBuiltins.getInstance() --- .../kotlin/resolve/calls/inference/ConstraintSystemImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/descriptors/src/org/jetbrains/kotlin/resolve/calls/inference/ConstraintSystemImpl.kt b/core/descriptors/src/org/jetbrains/kotlin/resolve/calls/inference/ConstraintSystemImpl.kt index daf81d3b5f3..d8a20bd174d 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/resolve/calls/inference/ConstraintSystemImpl.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/resolve/calls/inference/ConstraintSystemImpl.kt @@ -151,7 +151,7 @@ public class ConstraintSystemImpl : ConstraintSystem { } for ((typeVariable, typeBounds) in allTypeParameterBounds) { for (declaredUpperBound in typeVariable.getUpperBounds()) { - if (KotlinBuiltIns.getInstance().getNullableAnyType() == declaredUpperBound) continue //todo remove this line (?) + if (KotlinBuiltIns.isNullableAny(declaredUpperBound)) continue //todo remove this line (?) val position = TYPE_BOUND_POSITION.position(typeVariable.getIndex()) addBound(typeVariable, declaredUpperBound, UPPER_BOUND, position) }