Lambda to reference: not-null types are now preferred for platform type receivers #KT-14394 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-24 18:50:28 +03:00
parent a901de5112
commit 97b45569fc
6 changed files with 17 additions and 7 deletions
@@ -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)
}
@@ -3,5 +3,5 @@
fun use() {
val text = B.text
text.map(MutableList<Any>?::toString)
text.map(MutableList<Any>::toString)
}