Skip to content

Commit 9cbde91

Browse files
author
Michael Bogdanov
committed
Revert of 'Minor. workaround for KT-10679 Wrong outer after inline.'
1 parent 7eec1d8 commit 9cbde91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/TowerResolver.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ class TowerResolver {
9898

9999
operator fun TowerData.unaryPlus() = result.add(this)
100100

101-
val localLevels = createLocalLevels()
101+
val localLevels = lexicalScope.parentsWithSelf.
102+
filterIsInstance<LexicalScope>().filter { it.kind.withLocalDescriptors }.
103+
map { ScopeBasedTowerLevel(this@createTowerDataList, it) }
104+
102105
val nonLocalLevels = createNonLocalLevels()
103106
val syntheticLevel = SyntheticScopeBasedTowerLevel(this, syntheticScopes)
104107

0 commit comments

Comments
 (0)