mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Ensure <obinit>'s return type is void not Unit
This commit is contained in:
@@ -371,7 +371,7 @@ open class KotlinFileExtractor(
|
||||
// add method:
|
||||
val obinitLabel = getObinitLabel(c)
|
||||
val obinitId = tw.getLabelFor<DbMethod>(obinitLabel)
|
||||
val returnType = useType(pluginContext.irBuiltIns.unitType)
|
||||
val returnType = useType(pluginContext.irBuiltIns.unitType, TypeContext.RETURN)
|
||||
tw.writeMethods(obinitId, "<obinit>", "<obinit>()", returnType.javaResult.id, parentId, obinitId)
|
||||
tw.writeMethodsKotlinType(obinitId, returnType.kotlinResult.id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user