Skip to content

add AndroidCoreLibraryDesugaring trait#578

Open
madsodgaard wants to merge 1 commit intoswiftlang:mainfrom
madsodgaard:android-corelib-desugar
Open

add AndroidCoreLibraryDesugaring trait#578
madsodgaard wants to merge 1 commit intoswiftlang:mainfrom
madsodgaard:android-corelib-desugar

Conversation

@madsodgaard
Copy link
Contributor

@madsodgaard madsodgaard commented Feb 27, 2026

The API 23 runtime checks we were doing for desugaring class name happens at compile time, where I thought they were at runtime. So, that means even on API 24 (where Optional was added`). The core library desugaring still uses the new class name.

So instead we introduce a trait AndroidCoreLibraryDesugaring, which will then enable this behaviour at compile time instead.

@madsodgaard madsodgaard requested a review from ktoso as a code owner February 27, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant