Skip to content

Commit

Permalink
Fix constructor annotations signature
Browse files Browse the repository at this point in the history
  • Loading branch information
mmhelloworld committed Jun 2, 2024
1 parent e49feac commit 2f0d523
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Compiler/Jvm/Codegen.idr
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,8 @@ generateConstructor descriptorsByEncloser classExport fields annotations = do
extendsTypeName <- getJvmReferenceTypeName classExport.extends
let arity = the Int $ cast $ length fields
jvmArgumentTypesByIndex <- LiftIo $ Map.fromList $ zip [0 .. arity] (classType :: fieldTypes)
CreateMethod [Public] "generated.idr" classExport.name "<init>" descriptor signature Nothing annotations []
let asmAnnotations = asmAnnotation <$> annotations
CreateMethod [Public] "generated.idr" classExport.name "<init>" descriptor signature Nothing asmAnnotations []
MethodCodeStart
CreateLabel methodStartLabel
CreateLabel methodEndLabel
Expand Down

0 comments on commit 2f0d523

Please sign in to comment.