[FIR] Inline FirExpression.coneTypeUnsafe
#KT-61367
This commit is contained in:
committed by
Space Team
parent
126f2c9440
commit
a4fff7c7c0
@@ -44,9 +44,6 @@ val FirExpression.resolvedType: ConeKotlinType
|
||||
@UnresolvedExpressionTypeAccess
|
||||
inline fun <reified T : ConeKotlinType> FirExpression.coneTypeSafe(): T? = (coneTypeOrNull as? T)
|
||||
|
||||
@OptIn(UnresolvedExpressionTypeAccess::class)
|
||||
inline fun <reified T : ConeKotlinType> FirExpression.coneTypeUnsafe(): T = coneTypeOrNull as T
|
||||
|
||||
@OptIn(UnresolvedExpressionTypeAccess::class)
|
||||
val FirExpression.isResolved: Boolean get() = coneTypeOrNull != null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user