JS backend: use FqNameUnsafe when generate delegateName to avoid problems with special names.

#EA-64029 Fixed
This commit is contained in:
Zalim Bashorov
2015-03-13 18:43:44 +03:00
parent dfa8fbcb0d
commit 7d3094a0f1
4 changed files with 46 additions and 11 deletions
@@ -0,0 +1,23 @@
package foo
trait T {
fun foo(): String
}
class TImpl(val v: String) : T {
override fun foo() = v
}
class A {
class object : T by TImpl("A.Default")
}
object B : T by TImpl("B")
fun box(): String {
assertEquals("A.Default", A.foo())
assertEquals("B", B.foo())
return "OK"
}