JS backend: change name mangling -- right now before indexing we sort functions by Visibility and Modality.
(cherry picked from commit 7620a07)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package foo
|
||||
|
||||
abstract class B {
|
||||
abstract fun foo(param: String): String
|
||||
}
|
||||
|
||||
class A : B() {
|
||||
// must be here - before open fun foo(String)
|
||||
private fun foo(param: Int) = "foo(Int)"
|
||||
|
||||
fun foo() = "foo()"
|
||||
|
||||
override fun foo(param: String) = "foo(String)"
|
||||
}
|
||||
|
||||
fun box(): Boolean {
|
||||
return A().foo("OK") == "foo(String)"
|
||||
}
|
||||
Reference in New Issue
Block a user