Skip to content

Instantly share code, notes, and snippets.

@ShikaSD
Created March 31, 2020 15:42
Show Gist options
  • Select an option

  • Save ShikaSD/d2a6d8fca1320ceb6b42f5c34685bbdf to your computer and use it in GitHub Desktop.

Select an option

Save ShikaSD/d2a6d8fca1320ceb6b42f5c34685bbdf to your computer and use it in GitHub Desktop.
if (codegen.descriptor.needsSerializableFix()) {
val selfType = codegen.typeMapper.mapType(codegen.descriptor)
codegen.addReadResolveFunction {
getstatic(codegen.className, "INSTANCE", selfType.descriptor)
areturn(selfType)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment