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:
develar
2013-08-23 14:47:25 +04:00
committed by Zalim Bashorov
parent 8789a0d648
commit 92e76d18d9
3 changed files with 63 additions and 1 deletions
@@ -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)"
}