mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We always lower ownership now after the diagnostic passes (what this option actually controlled). So remove it. NFC.
18 lines
417 B
Swift
18 lines
417 B
Swift
// RUN: %target-swift-frontend -emit-sil -verify %s -o /dev/null
|
|
// RUN: %target-swift-frontend -emit-sil -verify %s -o /dev/null
|
|
|
|
struct S<T> {
|
|
let t: T // expected-note {{'self.t.1' not initialized}}
|
|
}
|
|
|
|
extension S where T == (Int, String) {
|
|
init(x: ()) {
|
|
t.0 = 1
|
|
t.1 = "hi"
|
|
}
|
|
|
|
init(y: ()) {
|
|
t.0 = 1
|
|
} // expected-error {{return from initializer without initializing all stored properties}}
|
|
}
|