You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -115,13 +119,27 @@ let _: ImplicitMembers = .implicit.another.another.another.another.another
115
119
let _:ImplicitMembers=.implicit.getAnother().getAnother().getAnother().getAnother().getAnother()
116
120
let _:ImplicitMembers=.implicit.getAnother(arg:0).getAnother(arg:0).getAnother(arg:0).getAnother(arg:0).getAnother(arg:0)
117
121
122
+
let _:ImplicitMembers=.implicit.another.getAnother().getAnother(arg:0).anotherIUO
123
+
let _:ImplicitMembers=.createImplicit().another.getAnother().getAnother(arg:0).anotherIUO
124
+
let _:ImplicitMembers=.init().another.getAnother().getAnother(arg:0).anotherIUO
125
+
126
+
let _:ImplicitMembers=.implicit.another.getAnother().getAnother(arg:0).getAnotherIUO()
127
+
let _:ImplicitMembers=.createImplicit().another.getAnother().getAnother(arg:0).getAnotherIUO()
128
+
let _:ImplicitMembers=.init().another.getAnother().getAnother(arg:0).getAnotherIUO()
129
+
130
+
let _:ImplicitMembers=.createIUOArg(_:)(0)
131
+
118
132
let _:ImplicitMembers=.optional!
119
133
let _:ImplicitMembers=.optional!.another
120
134
let _:ImplicitMembers=.createOptional()!.another
121
135
let _:ImplicitMembers=.optional!.anotherOptional!
122
136
let _:ImplicitMembers=.createOptional()!.anotherOptional!
123
137
let _:ImplicitMembers=.optional!.getAnotherOptional()!
124
138
let _:ImplicitMembers=.createOptional()!.getAnotherOptional()!
139
+
let _:ImplicitMembers=.implicit.getAnotherIUO()
140
+
let _:ImplicitMembers=.createImplicit().anotherIUO
141
+
let _:ImplicitMembers=.implicit.anotherIUO
142
+
let _:ImplicitMembers=.createImplicit().anotherIUO
125
143
126
144
let _:ImplicitMembers=.optional // expected-error {{value of optional type 'ImplicitMembers?' must be unwrapped to a value of type 'ImplicitMembers'}} expected-note {{coalesce using '??' to provide a default when the optional value contains 'nil'}} {{35-35= ?? <#default value#>}} expected-note {{force-unwrap using '!' to abort execution if the optional value contains 'nil'}} {{35-35=!}}
127
145
let _:ImplicitMembers=.implicit.anotherOptional // expected-error {{value of optional type 'ImplicitMembers?' must be unwrapped to a value of type 'ImplicitMembers'}} expected-note {{coalesce using '??' to provide a default when the optional value contains 'nil'}} {{51-51= ?? <#default value#>}} expected-note {{force-unwrap using '!' to abort execution if the optional value contains 'nil'}} {{51-51=!}}
@@ -167,6 +185,8 @@ let _: ImplicitMembers? = .createOptional()?.getAnother()
167
185
let _:ImplicitMembers?=.createOptional()?.getAnotherOptional()
168
186
let _:ImplicitMembers?=.createOptional()?.anotherOptional?.another
169
187
let _:ImplicitMembers?=.createOptional()?.getAnotherOptional()?.another
188
+
let _:ImplicitMembers?=.createOptional()?.getAnotherOptional()?.anotherIUO
189
+
let _:ImplicitMembers?=.createOptional()?.getAnotherOptional()?.getAnotherIUO()
170
190
// FIXME: This should be allowed
171
191
// let _: ImplicitMembers? = .superOptional???.another
0 commit comments