Better test

This commit is contained in:
Valentin Kipyatkov
2016-09-05 17:44:03 +03:00
parent 5b638f51b0
commit 82089da0cf
3 changed files with 4 additions and 1 deletions
@@ -29,6 +29,7 @@ fun foo(p: A) {
takeFun3 { val (x, y) = it[0] }
x(p) { val (x, y) = it }
x(p, fun (p) { val (x, y) = p })
}
var Any.v: (A) -> Unit
@@ -13,6 +13,7 @@ Searched references to takeFuns(p: MutableList<(A) -> Unit>) in non-Java files
Searched references to v in non-Java files
Used plain search of parameter a of A(val a: Int, val b: Int) in LocalSearchScope:
CLASS:A
FUN:null
{ a, n -> val (x, y) = a!! }
{ val (x, y ) = it }
{ val (x, y) = it }
@@ -4,4 +4,5 @@ Value read 27 takeFun1 { val (x, y) = it }
Value read 28 takeFun2 { a, n -> val (x, y) = a!! }
Value read 29 takeFun3 { val (x, y) = it[0] }
Value read 31 x(p) { val (x, y) = it }
Value read 39 "".v = { val (x, y ) = it }
Value read 32 x(p, fun (p) { val (x, y) = p })
Value read 40 "".v = { val (x, y ) = it }