Introduce Parameter: Do not apply to expressions of type Unit or Nothing

This commit is contained in:
Alexey Sedunov
2015-04-09 20:37:37 +03:00
parent 54392e7064
commit da14222c4a
16 changed files with 86 additions and 5 deletions
@@ -32,6 +32,7 @@ fun JetType.makeNotNullable() = TypeUtils.makeNotNullable(this)
fun JetType.supertypes(): Set<JetType> = TypeUtils.getAllSupertypes(this)
fun JetType.isNothing(): Boolean = KotlinBuiltIns.isNothing(this)
fun JetType.isUnit(): Boolean = KotlinBuiltIns.isUnit(this)
fun JetType.isAny(): Boolean = KotlinBuiltIns.isAnyOrNullableAny(this)