We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73911b6 commit 76a55e2Copy full SHA for 76a55e2
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/BodyResolveContext.kt
@@ -446,7 +446,10 @@ class BodyResolveContext(
446
447
val typeParameterScope = (owner as? FirRegularClass)?.typeParameterScope()
448
val selfTypeScope: FirSelfTypeScope? =
449
- owner.annotations.find { it.classId == StandardClassIds.Annotations.Self }?.let { FirSelfTypeScope(owner) }
+ if (owner.hasAnnotation(StandardClassIds.Annotations.Self)) {
450
+ FirSelfTypeScope(owner)
451
+ } else
452
+ null
453
454
val forMembersResolution =
455
staticsAndCompanion
0 commit comments