swift
f46aa1f8 - [TypeCheckType] Setters are escaping by default only at top level.

Commit
8 years ago
[TypeCheckType] Setters are escaping by default only at top level. We have a special case check for the no-escape-by-default rules for a computed property setter's newValue argument, which if a closure, obviously has to be escaping. But, we checked this by checking the type's overall DeclContext, which unfortunately meant we also made nested closures escaping implicitly. This fixes that to only tack on the implicit escaping at the top level for the setter's type. Conflict fixed for 3.0 version.
Author
Committer
Parents
  • lib/Sema
    • File
      TypeCheckType.cpp
  • test
    • IDE
      • File
        print_ast_tc_decls.swift
    • attr
      • File
        attr_escaping.swift