fix more compilation errors and some tests
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
fun foo() {
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
call("": String?<caret>?)
|
||||
call("" as String??)
|
||||
}
|
||||
|
||||
fun call(s: String?) {}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// "class org.jetbrains.kotlin.idea.quickfix.ChangeParameterTypeFix" "false"
|
||||
// ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>kotlin.Int</td></tr><tr><td>Found:</td><td>kotlin.String</td></tr></table></html>
|
||||
fun foo(y: Int = 0, z: (Int) -> String = {""}) {
|
||||
foo(""<caret>: Int)
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
// "class org.jetbrains.kotlin.idea.quickfix.ChangeFunctionReturnTypeFix" "false"
|
||||
// ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>kotlin.Int</td></tr><tr><td>Found:</td><td>kotlin.String</td></tr></table></html>
|
||||
fun foo(): Int = if (true) ""<caret>: Int else 4
|
||||
Reference in New Issue
Block a user