Skip to content

Add 'as Any' cast for optional people property values#34

Merged
joaoffcosta merged 1 commit into
mainfrom
joao/fix-optional-as-any-cast
May 27, 2026
Merged

Add 'as Any' cast for optional people property values#34
joaoffcosta merged 1 commit into
mainfrom
joao/fix-optional-as-any-cast

Conversation

@joaoffcosta

Copy link
Copy Markdown
Member

Summary

  • Optional property values like value?.rawValue produce a Swift compiler warning when implicitly coerced to Any
  • Non-optional values coerce silently, so only optional expressions need the explicit as Any cast
  • Now emits value?.rawValue as Any for optional enum properties

Test plan

  • Updated reverseTrialType expected output to include as Any
  • All 67 tests pass

🤖 Generated with Claude Code

Optional values (e.g. value?.rawValue) coerced to Any trigger a Swift
compiler warning. Non-optional values coerce silently, so only optional
property expressions need the explicit 'as Any' cast.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@joaoffcosta joaoffcosta merged commit 73306ea into main May 27, 2026
3 of 6 checks passed
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