Handle properly lambda change in incremental analysis
Fixed #KT-37273
This commit is contained in:
@@ -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> })
|
||||
Reference in New Issue
Block a user