Minor. DelegatingFlexibleType moved to top level

This commit is contained in:
Andrey Breslav
2014-06-24 20:02:55 +04:00
parent 687fdce30a
commit f11095b1d0
2 changed files with 11 additions and 11 deletions
@@ -260,16 +260,6 @@ class LazyJavaTypeResolver(
override fun isNullable(): Boolean = _nullable() override fun isNullable(): Boolean = _nullable()
} }
private open class DelegatingFlexibleType(
override val lowerBound: JetType,
override val upperBound: JetType
) : DelegatingType(), FlexibleType {
override fun getDelegate() = lowerBound
override fun toString() = "('$lowerBound'..'$upperBound')"
}
/* /*
* For a java type like java.util.List<Foo> * For a java type like java.util.List<Foo>
* lowerBound = MutableList<Foo> * lowerBound = MutableList<Foo>
@@ -20,3 +20,13 @@ public trait FlexibleType : JetType {
val lowerBound: JetType val lowerBound: JetType
val upperBound: JetType val upperBound: JetType
} }
public open class DelegatingFlexibleType(
override val lowerBound: JetType,
override val upperBound: JetType
) : DelegatingType(), FlexibleType {
override fun getDelegate() = lowerBound
override fun toString() = "('$lowerBound'..'$upperBound')"
}