You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Kotlin: generated data-class copy/componentN collide with explicit overloads #1062
Expected: The generated and explicit overloads get distinct symbols, and each call references its definition.
Actual: Both copy definitions are emitted as Generated#copy().. The call p.copy() references Generated#copy(+1)., which has no definition. component1 has the same problem.
Cause: Generated members are defined through memberMethodSymbol (KotlinAnalysisIndexer.kt, SymbolsCache.kt), which always uses the () disambiguator. References go through externalMethodDisambiguator.
Fix: Derive definitions from the actual generated callable symbols, using the same disambiguation as references. The existing handling of equals/hashCode/toString is a pattern to follow.
Activity