@main shouldn't allow @available #67136
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Like the soundness hole with stored properties and
@available
fixed in Swift 5.9, there's a similar hole with@main
:(on macOS:)
This can allow code explicitly requiring a newer OS to be run on an older OS.
Either mixing
@main
with@available
should be disallowed, or the availability information should be forwarded to the linker.Environment
and
show the same behavior.
The text was updated successfully, but these errors were encountered: