Files
swift-mirror/test/SILOptimizer/definite_init_extension.swift
Allan Shortlidge 0e5cfa6259 NFC: Remove duplicated RUN lines from many SILOptimizer tests.
A previous PR (https://github.com/apple/swift/pull/32407) that mass-modified
tests left some duplicate `RUN:` lines behind.
2023-08-08 11:19:52 -07:00

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}}
}