Intention tests: skip errors check for tests that fix some error

This commit is contained in:
Natalia Ukhorskaya
2015-12-16 15:17:46 +03:00
parent abd7ed5c70
commit 269676ee2e
25 changed files with 39 additions and 0 deletions
@@ -1,6 +1,7 @@
// IS_AVAILABLE: true
// ERROR: None of the following functions can be called with the arguments supplied: <br>public fun bar(a: kotlin.Int = ..., f: (kotlin.Int) -> kotlin.Int): kotlin.Unit defined in root package<br>public fun bar(a: kotlin.Int, b: kotlin.Int, f: (kotlin.Int) -> kotlin.Int): kotlin.Unit defined in root package
// ERROR: Unresolved reference: it
// SKIP_ERRORS_AFTER
fun foo() {
bar(<caret>{ it })
@@ -1,6 +1,7 @@
// IS_AVAILABLE: true
// ERROR: None of the following functions can be called with the arguments supplied: <br>public fun bar(a: kotlin.Int = ..., f: (kotlin.Int) -> kotlin.Int): kotlin.Unit defined in root package<br>public fun bar(a: kotlin.Int, b: kotlin.Int, f: (kotlin.Int) -> kotlin.Int): kotlin.Unit defined in root package
// ERROR: Unresolved reference: it
// SKIP_ERRORS_AFTER
fun foo() {
bar<caret> { it }
@@ -2,6 +2,7 @@
// ERROR: Type mismatch: inferred type is () -> ??? but kotlin.Int was expected
// ERROR: No value passed for parameter b
// ERROR: Unresolved reference: it
// SKIP_ERRORS_AFTER
fun foo() {
bar({ it <caret>})
}
@@ -2,6 +2,7 @@
// ERROR: Type mismatch: inferred type is () -> ??? but kotlin.Int was expected
// ERROR: No value passed for parameter b
// ERROR: Unresolved reference: it
// SKIP_ERRORS_AFTER
fun foo() {
bar<caret> { it }
}