Skip to content

Conversation

som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Aug 20, 2025

Fixes #23245

jchyb:

Previously, the behavior for setting NoInits and PureInterface flags for class symbols in TreeInfo.defKind (when compiling from a source) and in TreeUnpickler (when reading Tasty) was inconsistent. This was problematic, as the PureInterface flag dictated whether outer accessors were generated in ExplicitOuter phase (in the needsOuterIfReferenced method), so in the issue minimization, the inherited trait would have the outer accessors defined, and the inheriting object would then not implement them. This led to runtime MethodNotFound errors.
The problem was specifically with lazy vals, which were treated as if they did not have an rhs.

@som-snytt som-snytt force-pushed the issue/23245-missing-outer-separate-comp branch from 8d9c75f to 32cb403 Compare September 2, 2025 05:07
@som-snytt som-snytt marked this pull request as ready for review September 2, 2025 05:07
@Gedochao Gedochao requested a review from hamzaremmal September 8, 2025 13:18
@jchyb
Copy link
Contributor

jchyb commented Sep 17, 2025

Also fixes #23863 (the minimization is basically the same)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants