swift
55c0e740 - Sema: Fix crash when @noescape or @autoclosure is applied to parameter

Commit
8 years ago
Sema: Fix crash when @noescape or @autoclosure is applied to parameter In Swift 3, these attributes were changed to apply to the type, and not the parameter. If they appear on the parameter, we would go down a diagnostic code path. When checking a generic function signature, we might not have a contextual type for the parameter yet, so bail out instead of crashing.
Author
Committer
Parents
Loading