Mark required call with 'caret' in abstract resolved calls test

This commit is contained in:
Svetlana Isakova
2014-06-05 14:36:31 +04:00
parent 29ab166e1b
commit 48511206ad
78 changed files with 109 additions and 258 deletions
@@ -1,8 +1,6 @@
// !CALL: foo
fun <T, S, R> foo(t: T, f: (T) -> S, g: (S) -> R) {}
fun test() {
foo(1, { x -> "$x"}, { y -> y.length })
<caret>foo(1, { x -> "$x"}, { y -> y.length })
}
@@ -1,10 +1,8 @@
// !CALL: foo
fun <T, S, R> foo(t: T, f: (T) -> S, g: (S) -> R) {}
fun test() {
foo(1, { x -> "$x"}, { y -> y.length })
<caret>foo(1, { x -> "$x"}, { y -> y.length })
}
@@ -1,7 +1,5 @@
// !CALL: foo
fun <T> foo(f: () -> T) {}
fun test() {
foo { b }
<caret>foo { b }
}
@@ -1,9 +1,7 @@
// !CALL: foo
fun <T> foo(f: () -> T) {}
fun test() {
foo { b }
<caret>foo { b }
}
@@ -1,7 +1,5 @@
// !CALL: foo
fun <T> foo(f: (T) -> String) {}
fun test() {
foo { x -> "$x"}
<caret>foo { x -> "$x"}
}
@@ -1,9 +1,7 @@
// !CALL: foo
fun <T> foo(f: (T) -> String) {}
fun test() {
foo { x -> "$x"}
<caret>foo { x -> "$x"}
}
@@ -1,7 +1,5 @@
// !CALL: foo
fun <T> foo(f: (T) -> String) {}
fun test() {
foo { (x: Int) -> "$x"}
<caret>foo { (x: Int) -> "$x"}
}
@@ -1,9 +1,7 @@
// !CALL: foo
fun <T> foo(f: (T) -> String) {}
fun test() {
foo { (x: Int) -> "$x"}
<caret>foo { (x: Int) -> "$x"}
}
@@ -1,7 +1,5 @@
// !CALL: foo
fun foo(f: (Int) -> String) {}
fun test() {
foo { x -> "$x"}
<caret>foo { x -> "$x"}
}
@@ -1,9 +1,7 @@
// !CALL: foo
fun foo(f: (Int) -> String) {}
fun test() {
foo { x -> "$x"}
<caret>foo { x -> "$x"}
}
@@ -1,7 +1,5 @@
// !CALL: foo
fun foo() {}
fun test() {
foo { x -> "$x"}
<caret>foo { x -> "$x"}
}
@@ -1,9 +1,7 @@
// !CALL: foo
fun foo() {}
fun test() {
foo { x -> "$x"}
<caret>foo { x -> "$x"}
}
@@ -1,9 +1,7 @@
// !CALL: foo
fun <T> foo(t: T, l: List<T>) {}
fun use(vararg a: Any?) = a
fun test(a: Any, ls: List<String>) {
use(foo(11, ls))
use(<caret>foo(11, ls))
}
@@ -1,11 +1,9 @@
// !CALL: foo
fun <T> foo(t: T, l: List<T>) {}
fun use(vararg a: Any?) = a
fun test(a: Any, ls: List<String>) {
use(foo(11, ls))
use(<caret>foo(11, ls))
}
@@ -1,9 +1,7 @@
// !CALL: foo
class A {}
fun <T> foo(t: T) {}
fun bar() {
foo(A())
<caret>foo(A())
}
@@ -1,11 +1,9 @@
// !CALL: foo
class A {}
fun <T> foo(t: T) {}
fun bar() {
foo(A())
<caret>foo(A())
}
@@ -1,9 +1,7 @@
// !CALL: foo
fun <T> foo(t: T, l: MutableList<T>) {}
fun use(vararg a: Any?) = a
fun test(ls: MutableList<String>) {
use(foo(11, ls))
use(<caret>foo(11, ls))
}
@@ -1,11 +1,9 @@
// !CALL: foo
fun <T> foo(t: T, l: MutableList<T>) {}
fun use(vararg a: Any?) = a
fun test(ls: MutableList<String>) {
use(foo(11, ls))
use(<caret>foo(11, ls))
}
@@ -1,7 +1,5 @@
// !CALL: foo
fun <T> foo(l: List<T>) {}
fun test() {
foo(11)
<caret>foo(11)
}
@@ -1,9 +1,7 @@
// !CALL: foo
fun <T> foo(l: List<T>) {}
fun test() {
foo(11)
<caret>foo(11)
}
@@ -1,10 +1,8 @@
// !CALL: foo
class A {}
class B {}
fun foo(a: A, b: B) {}
fun bar() {
foo(b = B(), A())
<caret>foo(b = B(), A())
}
@@ -1,12 +1,10 @@
// !CALL: foo
class A {}
class B {}
fun foo(a: A, b: B) {}
fun bar() {
foo(b = B(), A())
<caret>foo(b = B(), A())
}
@@ -1,10 +1,8 @@
// !CALL: foo
class A {}
class B {}
fun foo(a: A, b: B) {}
fun bar() {
foo(b = B(), a = A())
<caret>foo(b = B(), a = A())
}
@@ -1,12 +1,10 @@
// !CALL: foo
class A {}
class B {}
fun foo(a: A, b: B) {}
fun bar() {
foo(b = B(), a = A())
<caret>foo(b = B(), a = A())
}
@@ -1,9 +1,7 @@
// !CALL: foo
class A {}
fun foo(a: A) {}
fun bar() {
foo(b)
<caret>foo(b)
}
@@ -1,11 +1,9 @@
// !CALL: foo
class A {}
fun foo(a: A) {}
fun bar() {
foo(b)
<caret>foo(b)
}
@@ -1,9 +1,7 @@
// !CALL: foo
class A {}
fun foo(a: A) {}
fun bar() {
foo(A())
<caret>foo(A())
}
@@ -1,11 +1,9 @@
// !CALL: foo
class A {}
fun foo(a: A) {}
fun bar() {
foo(A())
<caret>foo(A())
}
@@ -1,9 +1,7 @@
// !CALL: foo
class A {}
fun foo(a: A) {}
fun bar() {
foo("")
<caret>foo("")
}
@@ -1,11 +1,9 @@
// !CALL: foo
class A {}
fun foo(a: A) {}
fun bar() {
foo("")
<caret>foo("")
}
@@ -1,7 +1,5 @@
// !CALL: foo
fun foo() {}
fun bar() {
foo("")
<caret>foo("")
}
@@ -1,9 +1,7 @@
// !CALL: foo
fun foo() {}
fun bar() {
foo("")
<caret>foo("")
}
@@ -1,5 +1,3 @@
// !CALL: foo
class A {}
fun <T> foo(t: T) {}
@@ -7,5 +5,5 @@ fun <T> foo(t: T) {}
fun <T> emptyList(): List<T> = throw Exception()
fun bar() {
foo(emptyList())
<caret>foo(emptyList())
}
@@ -1,5 +1,3 @@
// !CALL: foo
class A {}
fun <T> foo(t: T) {}
@@ -7,7 +5,7 @@ fun <T> foo(t: T) {}
fun <T> emptyList(): List<T> = throw Exception()
fun bar() {
foo(emptyList())
<caret>foo(emptyList())
}
@@ -1,5 +1,3 @@
// !CALL: foo
class A {}
fun <T> foo(t: T) {}
@@ -7,5 +5,5 @@ fun <T> foo(t: T) {}
fun <T> emptyList(): MutableList<T> = throw Exception()
fun bar() {
foo(emptyList())
<caret>foo(emptyList())
}
@@ -1,5 +1,3 @@
// !CALL: foo
class A {}
fun <T> foo(t: T) {}
@@ -7,7 +5,7 @@ fun <T> foo(t: T) {}
fun <T> emptyList(): MutableList<T> = throw Exception()
fun bar() {
foo(emptyList())
<caret>foo(emptyList())
}
@@ -1,5 +1,3 @@
// !CALL: foo
class A {}
fun foo(a: A) {}
@@ -7,5 +5,5 @@ fun foo(a: A, s: String) {}
fun foo(a: A, any: Any) {}
fun bar() {
foo(A(), "")
<caret>foo(A(), "")
}
@@ -1,5 +1,3 @@
// !CALL: foo
class A {}
fun foo(a: A) {}
@@ -7,7 +5,7 @@ fun foo(a: A, s: String) {}
fun foo(a: A, any: Any) {}
fun bar() {
foo(A(), "")
<caret>foo(A(), "")
}