KT-11030 Copy static properties of object's class to instance of object (think about moving local functions to member methods in objects)
This commit is contained in:
@@ -311,6 +311,7 @@ var Kotlin = {};
|
||||
metadata.type = Kotlin.TYPE.OBJECT;
|
||||
Object.defineProperty(this, $o.className, {value: obj});
|
||||
defineNestedTypes(obj, klass.$metadata$.types);
|
||||
copyProperties(obj, metadata.staticMembers);
|
||||
if (metadata.baseClass != null) {
|
||||
constructor.baseInitializer = metadata.baseClass;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user