From f5796a303d1ef1be1d63f9c7bf726c35ff1985fd Mon Sep 17 00:00:00 2001 From: Dmitry Gridin Date: Tue, 28 May 2019 17:06:24 +0700 Subject: [PATCH] Fix tests Relates to #KT-30622 --- idea/testData/quickfix/typeMismatch/casts/preferExclExcl.kt | 1 + .../quickfix/typeMismatch/paramTypeLambdaMismatchNull.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/idea/testData/quickfix/typeMismatch/casts/preferExclExcl.kt b/idea/testData/quickfix/typeMismatch/casts/preferExclExcl.kt index 1802768dc8a..643951c8ff8 100644 --- a/idea/testData/quickfix/typeMismatch/casts/preferExclExcl.kt +++ b/idea/testData/quickfix/typeMismatch/casts/preferExclExcl.kt @@ -1,4 +1,5 @@ // "Cast expression 's' to 'String'" "false" +// ACTION: Add 's =' to argument // ACTION: Add 'toString()' call // ACTION: Add non-null asserted (!!) call // ACTION: Change parameter 's' type of function 'bar' to 'String?' diff --git a/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatchNull.kt b/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatchNull.kt index d26c47c4b4c..b8fa9187500 100644 --- a/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatchNull.kt +++ b/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatchNull.kt @@ -1,5 +1,6 @@ // "Surround with lambda" "false" // ERROR: Null can not be a value of a non-null type () -> String +// ACTION: Add 'block =' to argument // ACTION: Change parameter 'block' type of function 'str' to '(() -> String)?' // ACTION: Do not show hints for current method fun nullFn() {