"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/Constraints/construction.swift" between
swift-swift-5.8-RELEASE.tar.gz and swift-swift-5.8.1-RELEASE.tar.gz

About: Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns (developed by Apple).

construction.swift  (swift-swift-5.8-RELEASE):construction.swift  (swift-swift-5.8.1-RELEASE)
skipping to change at line 177 skipping to change at line 177
init(s: S) {} init(s: S) {}
} }
C(s: C.S(f: [.e1, .e2])) C(s: C.S(f: [.e1, .e2]))
// expected-error@-1 {{incorrect argument label in call (have 'f:', expected ' e:')}} {{12-13=e}} // expected-error@-1 {{incorrect argument label in call (have 'f:', expected ' e:')}} {{12-13=e}}
} }
// rdar://problem/34670592 - Compiler crash on heterogeneous collection literal // rdar://problem/34670592 - Compiler crash on heterogeneous collection literal
_ = Array([1, "hello"]) // Ok _ = Array([1, "hello"]) // Ok
// expected-warning@-1 {{heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional}}
func init_via_non_const_metatype(_ s1: S1.Type) { func init_via_non_const_metatype(_ s1: S1.Type) {
_ = s1(i: 42) // expected-error {{initializing from a metatype value must refe rence 'init' explicitly}} {{9-9=.init}} _ = s1(i: 42) // expected-error {{initializing from a metatype value must refe rence 'init' explicitly}} {{9-9=.init}}
_ = s1.init(i: 42) // ok _ = s1.init(i: 42) // ok
} }
// rdar://problem/45535925 - diagnostic is attached to invalid source location // rdar://problem/45535925 - diagnostic is attached to invalid source location
func rdar_45535925() { func rdar_45535925() {
struct S { struct S {
var addr: String var addr: String
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)