Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/scripts/scriptsDeclsMayConflict.kts
T
Ilya Chernikov cdf4b17052 K2 Scripting tests: adding tests on script decls visibility
fixes (makes it stable) behavior of the script top-level declarations
visibility in K2 scripts
2024-02-21 07:47:15 +00:00

13 lines
140 B
Kotlin
Vendored

// FILE: script1.kts
val a = 42
// FILE: script2.kts
val a = "42"
// FILE: main.kt
fun foo() = <!OVERLOAD_RESOLUTION_AMBIGUITY!>a<!>