Files
swift-mirror/lib/Parse/ParseDecl.cpp
Chris Lattner c81cf86181 implement <rdar://problem/19707366> QoI: @autoclosure declaration change fixit
Before we would produce (with no fixit):

a.swift:1:13: error: attribute can only be applied to declarations, not types
let step : @autoclosure() -> () 
            ^

now we produce (with a fixit):

a.swift:1:13: error: 'autoclosure' attribute is now an attribute of the parameter declaration, not its type
let step : @autoclosure() -> () 
           ~^~~~~~~~~~~
@autoclosure 

This also generates the same handles other declattributes incorrectly applied to types.



Swift SVN r24946
2015-02-04 06:39:54 +00:00

154 KiB