File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
seskar/seskar-compiler-plugin/src/main/kotlin/seskar/compiler/common/backend Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
44import org.jetbrains.kotlin.ir.UNDEFINED_OFFSET
55import org.jetbrains.kotlin.ir.expressions.IrConstructorCall
66import org.jetbrains.kotlin.ir.expressions.impl.IrConstructorCallImpl
7- import org.jetbrains.kotlin.ir.types.defaultType
87import org.jetbrains.kotlin.name.ClassId
98import org.jetbrains.kotlin.name.FqName
109import org.jetbrains.kotlin.name.Name
@@ -59,12 +58,11 @@ internal fun annotation(
5958 classId : ClassId ,
6059 vararg parameters : String ,
6160): IrConstructorCall {
62- val type = context.referenceClass(classId)!! .defaultType
6361 val symbol = context.referenceConstructors(classId).single()
6462 val annotation = IrConstructorCallImpl (
6563 startOffset = UNDEFINED_OFFSET ,
6664 endOffset = UNDEFINED_OFFSET ,
67- type = type ,
65+ type = symbol.owner.returnType ,
6866 symbol = symbol,
6967 typeArgumentsCount = 0 ,
7068 constructorTypeArgumentsCount = 0 ,
You can’t perform that action at this time.
0 commit comments