Skip to content

Commit

Permalink
Export generic serializer constructor from JS module
Browse files Browse the repository at this point in the history
Fixes Kotlin/kotlinx.serialization#609

(cherry picked from commit b9ac134)
  • Loading branch information
sandwwraith committed Nov 25, 2019
1 parent 0d97db0 commit a1fad95
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ open class SerializerJsTranslator(

f.name = context.getInnerNameForDescriptor(typedConstructorDescriptor);
context.addDeclarationStatement(f.makeStmt())
context.export(typedConstructorDescriptor)
}

protected fun TranslationContext.referenceMethod(clazz: ClassDescriptor, name: String) =
Expand Down

0 comments on commit a1fad95

Please # to comment.