Change Signature: Warn about safe call receiver being transformed to value argument
#KT-8744 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
interface A {
|
||||
val parent: A?
|
||||
}
|
||||
|
||||
fun A.<caret>ext(): Int = 1 + (parent?.ext() ?: 0)
|
||||
@@ -0,0 +1 @@
|
||||
Receiver can't be safely transformed to value argument: parent?.ext()
|
||||
Reference in New Issue
Block a user