[FIR] Check conflicting overloads via scopes
Scopes may return private symbols from supertypes, they should not clash with symbols from the current class. For example, see: `FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.FakeOverride#testPrivateFakeOverrides1` Lombok shouldn't generate functions if the user has defined explicit ones. In K1 generated functions are not really added to the declared members scope. ^KT-61243 Fixed
This commit is contained in:
committed by
Space Team
parent
973248f432
commit
4e58715760
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-57100
|
||||
// WITH_STDLIB
|
||||
|
||||
@@ -10,5 +11,5 @@ interface C07I02{
|
||||
}
|
||||
|
||||
class C07C01: C07I01, C07I02 {
|
||||
<!CONFLICTING_OVERLOADS!>override fun some()<!> {}
|
||||
override fun some() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user