Add test for KT-52782
It just demonstrates/fixate the current "broken" behavior in K1 that we unfortunately have and that is fixed in K2
This commit is contained in:
@@ -30,6 +30,8 @@ fun String.asFsdAddress(): String {
|
||||
fun box(): String {
|
||||
val state = Test().state
|
||||
if (state is GoBuildingRunningState<*>) {
|
||||
// Actually, that code is valid and met at IJ, but unfortunately it was broken since 1.7.0
|
||||
// See KT-52782 and testData/diagnostics/tests/inference/capturedTypes/kt52782.kt
|
||||
state.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>buildingWorkingDirectory<!>.<!DEBUG_INFO_MISSING_UNRESOLVED!>asFsdAddress<!>()
|
||||
}
|
||||
return "OK"
|
||||
|
||||
Reference in New Issue
Block a user