KT-12023 Kotlin Lint: Cast doesn't trigger minSdk error

Check Kotlin as/is types.
(cherry picked from commit c0db8e0)
This commit is contained in:
Yan Zhulanow
2016-06-15 21:22:25 +03:00
parent 6752df189d
commit 206e439595
10 changed files with 81 additions and 2 deletions
@@ -36,6 +36,11 @@ interface UBinaryExpressionWithType : UExpression {
*/
val type: UType
/**
* Returns the type reference.
*/
val typeReference: UTypeReference?
override fun logString() = log("UBinaryExpressionWithType (${getExpressionType()?.name}, ${operationKind.name})", operand)
override fun renderString() = "${operand.renderString()} ${operationKind.name} ${type.name}"