[FIR] Fix unexpected primary constructor scope in secondary constructor
^KTIJ-23720 ^KT-56353 Fixed
This commit is contained in:
committed by
Space Team
parent
c25a5bc9c1
commit
7db32f6430
+4
-2
@@ -631,8 +631,10 @@ class BodyResolveContext(
|
||||
* special towerDataContext
|
||||
*/
|
||||
withTowerDataMode(FirTowerDataMode.CONSTRUCTOR_HEADER) {
|
||||
getPrimaryConstructorAllParametersScope()?.let { addLocalScope(it) }
|
||||
f()
|
||||
withTowerDataCleanup {
|
||||
getPrimaryConstructorAllParametersScope()?.let { addLocalScope(it) }
|
||||
f()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
withTowerDataCleanup {
|
||||
|
||||
Reference in New Issue
Block a user