fix more compilation errors and some tests

This commit is contained in:
Dmitry Jemerov
2015-10-08 16:53:43 +02:00
parent f5aaf65ca9
commit a63d3f5a0f
13 changed files with 29 additions and 56 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
fun foo() {
@Suppress("REDUNDANT_NULLABLE")
call("": String?<caret>?)
call("" as String??)
}
fun call(s: String?) {}
@@ -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)
}
@@ -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