Parsing and Sema support for addressors.

Swift SVN r22229
This commit is contained in:
John McCall
2014-09-23 20:34:21 +00:00
parent 16cb523c3a
commit a7c65273d5
12 changed files with 808 additions and 424 deletions

View File

@@ -427,7 +427,7 @@ struct X4 : P1 { // expected-error{{type 'X4' does not conform to protocol 'P1'}
protocol ShouldntCrash {
// rdar://16109996
let fullName: String { get } // expected-error {{'let' declarations cannot be a computed property}}
let fullName: String { get } // expected-error {{'let' declarations cannot be computed properties}}
// <rdar://problem/17200672> Let in protocol causes unclear errors and crashes
let fullName2: String // expected-error {{immutable property requirement must be declared as 'var' with a '{ get }' specifier}}