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:
Denis.Zharkov
2022-08-24 12:22:18 +02:00
committed by teamcity
parent 01f567a16d
commit 490382b77f
8 changed files with 152 additions and 0 deletions
@@ -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.buildingWorkingDirectory.asFsdAddress()
}
return "OK"