Skip to content

Commit

Permalink
Kotlin: Another 1.8 build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Jan 9, 2023
1 parent e2fc03e commit 8bb3b8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ open class KotlinFileExtractor(

private fun getNullabilityAnnotation(t: IrType, declOrigin: IrDeclarationOrigin, existingAnnotations: List<IrConstructorCall>, javaAnnotations: Collection<JavaAnnotation>?) =
getNullabilityAnnotationName(t, declOrigin, existingAnnotations, javaAnnotations)?.let {
pluginContext.referenceClass(it)?.let { annotationClass ->
getClassByFqName(pluginContext, it)?.let { annotationClass ->
annotationClass.owner.declarations.firstIsInstanceOrNull<IrConstructor>()?.let { annotationConstructor ->
IrConstructorCallImpl.fromSymbolOwner(
UNDEFINED_OFFSET, UNDEFINED_OFFSET, annotationConstructor.returnType, annotationConstructor.symbol, 0
Expand Down

0 comments on commit 8bb3b8a

Please sign in to comment.