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 945cafa commit a6b8f18Copy full SHA for a6b8f18
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/BodyResolveContext.kt
@@ -449,7 +449,10 @@ class BodyResolveContext(
449
450
val typeParameterScope = (owner as? FirRegularClass)?.typeParameterScope()
451
val selfTypeScope: FirSelfTypeScope? =
452
- owner.annotations.find { it.classId == StandardClassIds.Annotations.Self }?.let { FirSelfTypeScope(owner) }
+ if (owner.hasAnnotation(StandardClassIds.Annotations.Self)) {
453
+ FirSelfTypeScope(owner)
454
+ } else
455
+ null
456
457
val forMembersResolution =
458
staticsAndCompanion
0 commit comments