Fixed one of the cases with lambda's returning Nothing
This commit is contained in:
@@ -392,5 +392,10 @@ public fun Call.isSafeCall(): Boolean {
|
||||
|
||||
public fun Call.isExplicitSafeCall(): Boolean = getCallOperationNode()?.getElementType() == JetTokens.SAFE_ACCESS
|
||||
|
||||
public fun JetTypeReference?.isProbablyNothing(): Boolean
|
||||
= (this?.getTypeElement() as? JetUserType)?.getReferencedName() == "Nothing"
|
||||
public fun JetTypeReference?.isProbablyNothing(): Boolean {
|
||||
val userType = this?.getTypeElement() as? JetUserType ?: return false
|
||||
return userType.isProbablyNothing()
|
||||
}
|
||||
|
||||
public fun JetUserType?.isProbablyNothing(): Boolean
|
||||
= this?.getReferencedName() == "Nothing"
|
||||
Reference in New Issue
Block a user