Skip to content

Avoid crashing on unexpected localized key storage - #369

Draft
ZHUOLIN0928 wants to merge 1 commit into
pointfreeco:mainfrom
ZHUOLIN0928:codex/269-safe-localized-key-reflection
Draft

Avoid crashing on unexpected localized key storage#369
ZHUOLIN0928 wants to merge 1 commit into
pointfreeco:mainfrom
ZHUOLIN0928:codex/269-safe-localized-key-reflection

Conversation

@ZHUOLIN0928

Copy link
Copy Markdown

Summary

  • Replace force casts in LocalizedStringKey reflection with guarded casts and safe argument filtering.
  • Add a regression test covering an interpolated AttributedString storage.

Fixes #269

Testing

  • git diff --check
  • swiftc -parse passed for the changed source and test files
  • swift build --target SwiftNavigation was blocked by the existing SwiftUIMacros.StateMacro plugin failure in the current CommandLineTools environment

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.

Force casting fails if TextState has an unexpected storage

1 participant