Files
kotlin-fork/compiler/testData/diagnostics/tests/script/scriptScopes.kts
T
Ilya Chernikov 47448d779c K2 Scripting: enable script diagnostic tests for FIR
also add script scopes test
2022-11-26 18:01:49 +00:00

12 lines
130 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_VARIABLE
var b = true
if (b) {
val x = 3
}
val y = <!UNRESOLVED_REFERENCE!>x<!>