Change Signature: Warn about safe call receiver being transformed to value argument

#KT-8744 Fixed
This commit is contained in:
Alexey Sedunov
2016-02-05 15:18:57 +03:00
parent b3801ffac7
commit a9ddc4da1a
4 changed files with 31 additions and 0 deletions
@@ -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()