Repository navigation
Back absence evidence with an object so newer Scala 3 compilers link - #154
Merged
Merged
Conversation
jleider
marked this pull request as ready for review
November 24, 2026 19:59
FieldAbsent and MaybeRecord were opaque types over Unit. Scala 3.3 erases a method returning such a type to BoxedUnit and Scala 3.10 to void, so code compiled with 3.10 against the published 3.3 jar failed with NoSuchMethodError on FieldAbsent's inlined proof accessor (reached through LacksKey, NotContains, MergeWith and Union). Both are now backed by an object, which erases the same way under every Scala 3 compiler. - linkage: runs core's JVM test suite compiled with the newest Scala 3 against the published Scala 3 LTS build of core's main classes - coreLatest3: tests core with Scala 3.10, tested but not published - Version 0.9.1 Claude-Session: https://claude.ai/code/session_0183D2EgXE7mpWaqAh2rBSKy
jleider
force-pushed
the
fix-field-absent-erasure
branch
from
November 24, 2026 20:21
4cb3660 to
95d025c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FieldAbsentandMaybeRecordwere opaque types overUnit. Scala 3.3 erases a method returning such a type toBoxedUnitand Scala 3.10 tovoid, so code compiled with 3.10 against the published 3.3 jar fails at runtime withNoSuchMethodError: 'void formless.record.Lookup$package$FieldAbsent$.inline$proof()'whereverFieldAbsentis proven:LacksKey,NotContains,MergeWithandUnion. Scala 3.8 erases it like 3.3, socoreNext3didn't catch it.Lookup.scalaFieldAbsentandMaybeRecordare backed by aprivate[formless] object Proven, which erases the same way under every Scala 3 compilerlinkagecore's JVM test suite compiled with the newest Scala 3 against the Scala 3 LTS build ofcore's main classes, the way a user's build links against the published jar. Without the fix it fails with theNoSuchMethodErrorabovecoreLatest3coreon Scala 3.10, tested but not published, likecoreNext3; the test source generators are shared withlinkageThe absence givens now take
Proveninstead ofBoxedUnit, so code compiled against 0.9.0 that summonsLacksKey/NotContainsmust be recompiled.https://claude.ai/code/session_0183D2EgXE7mpWaqAh2rBSKy