mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A previous PR (https://github.com/apple/swift/pull/32407) that mass-modified tests left some duplicate `RUN:` lines behind.
17 lines
352 B
Swift
17 lines
352 B
Swift
// 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}}
|
|
}
|