Handle properly lambda change in incremental analysis

Fixed #KT-37273
This commit is contained in:
Vladimir Dolzhenko
2020-03-05 18:58:24 +01:00
parent 93394656a3
commit dc6be68a41
5 changed files with 19 additions and 3 deletions
@@ -0,0 +1,8 @@
// OUT_OF_CODE_BLOCK: FALSE
// TYPE: 1
// ERROR: Unresolved reference: i1
open class Base(init: () -> Unit)
class Some(i: Int) : Base({
val t = i<caret>
})
@@ -1,5 +1,7 @@
// OUT_OF_CODE_BLOCK: FALSE
// ERROR: Unresolved reference: a
// ERROR: Unsupported [literal prefixes and suffixes]
// ERROR: None of the following functions can be called with the arguments supplied: <br>public constructor A(x: Int) defined in A<br>public constructor A(l: String) defined in A
// Navigation from "class B: A()" should move to valid constructor even after changing type in lambda
open class A(l: String) {
@@ -1,5 +1,6 @@
// OUT_OF_CODE_BLOCK: FALSE
// ERROR: Unresolved reference: a
// ERROR: Unsupported [literal prefixes and suffixes]
open class A(a: () -> Unit)
class B: A({ "1"<caret> })