Files
Andrew Trick 0c05634156 Fix lifetime type checking to infer immortal static accessors
A recent change to lifetime type checking affected the way lifetimes are
inferred for static methods resulting in diagnostic errors for accessors that
returned a non-Escapable type.

Add a special lifetime default for accessors, such as:

    /* DEFAULT: @_lifetime(immortal) */
    static let globalSpan = globalArray.span

Explicitly writing the lifetime annotation for accessors is much to
cumbersome (it forces a computed property with a getter). This also fixes a
regression in compiler behavior, even though the original behavior was
unintentional.

Fixes rdar://171283240 error: the 'get' accessor with a ~Escapable result needs
a parameter to depend on)
2026-02-26 16:32:30 -08:00
..
2026-02-09 14:43:25 -08:00
2024-11-18 18:09:19 -08:00
2024-11-18 18:09:19 -08:00
2025-07-22 13:07:03 -07:00
2025-02-06 14:04:28 -08:00