Minor. removed functions which declared in Standard.kt from diagnostic testdata.
Removed declaration for functions: TODO, run, with, apply, let.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
// See KT-10056
|
||||
class Foo(val bar: String)
|
||||
|
||||
public inline fun <T, R> T.let(f: (T) -> R): R = f(this)
|
||||
|
||||
fun test(foo: Foo?) {
|
||||
foo?.bar.let {
|
||||
// Error, foo?.bar is nullable
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package
|
||||
|
||||
public fun test(/*0*/ foo: Foo?): kotlin.Unit
|
||||
public inline fun </*0*/ T, /*1*/ R> T.let(/*0*/ f: (T) -> R): R
|
||||
|
||||
public final class Foo {
|
||||
public constructor Foo(/*0*/ bar: kotlin.String)
|
||||
|
||||
-2
@@ -4,8 +4,6 @@ class Foo(val bar: Bar, val nbar: Bar?) {
|
||||
fun baz(s: String) = if (s != "") Bar(s) else null
|
||||
}
|
||||
|
||||
public inline fun <T, R> T.let(f: (T) -> R): R = f(this)
|
||||
|
||||
fun String?.call(f: (String?) -> String?) = f(this)
|
||||
|
||||
fun String.notNullLet(f: (String) -> Unit) = f(this)
|
||||
|
||||
-1
@@ -4,7 +4,6 @@ public fun test(/*0*/ foo: Foo?): kotlin.Unit
|
||||
public fun testNotNull(/*0*/ foo: Foo): kotlin.Unit
|
||||
public fun testNullable(/*0*/ foo: Foo?): kotlin.Unit
|
||||
public fun kotlin.String?.call(/*0*/ f: (kotlin.String?) -> kotlin.String?): kotlin.String?
|
||||
public inline fun </*0*/ T, /*1*/ R> T.let(/*0*/ f: (T) -> R): R
|
||||
public fun kotlin.String.notNullLet(/*0*/ f: (kotlin.String) -> kotlin.Unit): kotlin.Unit
|
||||
|
||||
public final class Bar {
|
||||
|
||||
-2
@@ -1,7 +1,5 @@
|
||||
class Foo(val bar: String?)
|
||||
|
||||
public inline fun <T, R> T.let(f: (T) -> R): R = f(this)
|
||||
|
||||
fun test(foo: Foo?) {
|
||||
foo!!.bar.let {
|
||||
// Correct
|
||||
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
package
|
||||
|
||||
public fun test(/*0*/ foo: Foo?): kotlin.Unit
|
||||
public inline fun </*0*/ T, /*1*/ R> T.let(/*0*/ f: (T) -> R): R
|
||||
|
||||
public final class Foo {
|
||||
public constructor Foo(/*0*/ bar: kotlin.String?)
|
||||
|
||||
-2
@@ -12,8 +12,6 @@ public class Foo {
|
||||
}
|
||||
|
||||
// FILE: Test.kt
|
||||
public inline fun <T, R> T.let(f: (T) -> R): R = f(this)
|
||||
|
||||
fun test() {
|
||||
val foo = Foo.create(null)
|
||||
foo?.bar.let {
|
||||
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
package
|
||||
|
||||
public fun test(): kotlin.Unit
|
||||
public inline fun </*0*/ T, /*1*/ R> T.let(/*0*/ f: (T) -> R): R
|
||||
|
||||
public open class Foo {
|
||||
private constructor Foo(/*0*/ bar: kotlin.String!)
|
||||
|
||||
Reference in New Issue
Block a user