JS: fix copying functions with default arguments across interfaces

Copy function to super interface first, then copy from interface
to class. Add interface set to JsClassModel for this purpose.

See KT-20625
This commit is contained in:
Alexey Andreev
2017-10-12 13:46:48 +03:00
parent d4ea4983d8
commit b781661279
10 changed files with 453 additions and 49 deletions
@@ -17,5 +17,6 @@
package org.jetbrains.kotlin.js.backend.ast
class JsClassModel(val name: JsName, val superName: JsName?) {
val interfaces: MutableSet<JsName> = mutableSetOf()
val postDeclarationBlock = JsGlobalBlock()
}