mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Parsing and Sema support for addressors.
Swift SVN r22229
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user