Skip to content

Commit 2c305b4

Browse files
dimonchik0036Space Team
authored andcommitted
[SLC] SymbolLightSimpleMethod: simplify isOverride for top level functions
1 parent 4d258d7 commit 2c305b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/methods/SymbolLightSimpleMethod.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ internal class SymbolLightSimpleMethod(
170170
override fun isOverride(): Boolean = _isOverride
171171

172172
private val _isOverride: Boolean by lazyPub {
173-
withFunctionSymbol { it.isOverride }
173+
if (isTopLevel) false else withFunctionSymbol { it.isOverride }
174174
}
175175

176176
private val KtType.isVoidType: Boolean get() = isUnit && nullabilityType != NullabilityType.Nullable

0 commit comments

Comments
 (0)