Different behavior with interpreted vs built program #79568
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Reproduction
With this code:
If you run directly with swift:
it prints
nil
.If you instead compile and run with:
It crashes with:
Expected behavior
Ideally it would exhibit the same behavior in both cases, with whatever behavior is "correct". I imagine in this specific case the cause is a bug in Foundation not Swift causing the runtime crash.
Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: