KT-2752: add test to prove that KT-13024 is no longer reproducible with new implementation of name mangling
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
// FILE: a.kt
|
||||
package foo
|
||||
|
||||
import bar.*
|
||||
import bar.Some.importedFunc
|
||||
|
||||
fun box(): String {
|
||||
Some.justFunc()
|
||||
importedFunc()
|
||||
assertEquals("justFunc();importedFunc();", log)
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// FILE: b.kt
|
||||
package bar
|
||||
|
||||
var log = ""
|
||||
|
||||
object Some {
|
||||
fun justFunc() {
|
||||
log += "justFunc();"
|
||||
}
|
||||
|
||||
fun importedFunc() {
|
||||
log += "importedFunc();"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user