mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Fix return type of <clinit> methods
This commit is contained in:
committed by
Chris Smowton
parent
de003fd122
commit
8b1a7c845c
@@ -554,7 +554,7 @@ open class KotlinFileExtractor(
|
||||
classTypeArgsIncludingOuterClasses = listOf()
|
||||
)
|
||||
val clinitId = tw.getLabelFor<DbMethod>(clinitLabel)
|
||||
val returnType = useType(pluginContext.irBuiltIns.unitType)
|
||||
val returnType = useType(pluginContext.irBuiltIns.unitType, TypeContext.RETURN)
|
||||
tw.writeMethods(clinitId, "<clinit>", "<clinit>()", returnType.javaResult.id, parentId, clinitId)
|
||||
tw.writeMethodsKotlinType(clinitId, returnType.kotlinResult.id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user