Lambda to reference: not-null types are now preferred for platform type receivers #KT-14394 Fixed
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val y = java.lang.String.valueOf(42)
|
||||
val x = y.let { <caret>it.capitalize() }
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val y = java.lang.String.valueOf(42)
|
||||
val x = y.let(String::capitalize)
|
||||
@@ -2,5 +2,5 @@
|
||||
// See KT-13411
|
||||
|
||||
fun use() {
|
||||
B.text.map(Any?::toString)
|
||||
B.text.map(Any::toString)
|
||||
}
|
||||
+1
-1
@@ -3,5 +3,5 @@
|
||||
|
||||
fun use() {
|
||||
val text = B.text
|
||||
text.map(MutableList<Any>?::toString)
|
||||
text.map(MutableList<Any>::toString)
|
||||
}
|
||||
Reference in New Issue
Block a user