@@ -9,23 +9,29 @@ func iuo_error(prop: IUOProperty) {
9
9
// expected-note@-2{{coalesce}}
10
10
// expected-note@-3{{force-unwrap}}
11
11
let _: Coat ? = prop. iuo. optional ( ) !
12
- // expected-error@-1 {{cannot invoke 'optional' with no arguments}}
12
+ // expected-error@-1 {{value of optional type '(() -> Coat?)?' must be unwrapped to a value of type '() -> Coat?'}}
13
+ // expected-note@-2{{coalesce}}
14
+ // expected-note@-3{{force-unwrap}}
13
15
let _: Coat ? = prop. iuo. optional!( )
14
16
let _: Coat ? = prop. iuo. optional!( ) !
15
17
let _: Coat ? = prop. iuo!. optional ( )
16
18
// expected-error@-1 {{value of optional type '(() -> Coat?)?' must be unwrapped}}
17
19
// expected-note@-2{{coalesce}}
18
20
// expected-note@-3{{force-unwrap}}
19
21
let _: Coat ? = prop. iuo!. optional ( ) !
20
- // expected-error@-1 {{cannot invoke 'optional' with no arguments}}
22
+ // expected-error@-1 {{value of optional type '(() -> Coat?)?' must be unwrapped to a value of type '() -> Coat?'}}
23
+ // expected-note@-2{{coalesce}}
24
+ // expected-note@-3{{force-unwrap}}
21
25
let _: Coat ? = prop. iuo!. optional!( )
22
26
let _: Coat ? = prop. iuo!. optional!( ) !
23
27
let _: Coat = prop. iuo. optional ( )
24
28
// expected-error@-1 {{value of optional type '(() -> Coat)?' must be unwrapped}}
25
29
// expected-note@-2{{coalesce}}
26
30
// expected-note@-3{{force-unwrap}}
27
31
let _: Coat = prop. iuo. optional ( ) !
28
- // expected-error@-1 {{cannot invoke 'optional' with no arguments}}
32
+ // expected-error@-1 {{value of optional type '(() -> Coat?)?' must be unwrapped to a value of type '() -> Coat?'}}
33
+ // expected-note@-2{{coalesce}}
34
+ // expected-note@-3{{force-unwrap}}
29
35
let _: Coat = prop. iuo. optional!( )
30
36
let _: Coat = prop. iuo. optional!( ) !
31
37
let _: Coat = prop. iuo!. optional ( )
@@ -34,7 +40,9 @@ func iuo_error(prop: IUOProperty) {
34
40
// expected-note@-3{{force-unwrap}}
35
41
36
42
let _: Coat = prop. iuo!. optional ( ) !
37
- // expected-error@-1 {{cannot invoke 'optional' with no arguments}}
43
+ // expected-error@-1 {{value of optional type '(() -> Coat?)?' must be unwrapped to a value of type '() -> Coat?'}}
44
+ // expected-note@-2{{coalesce}}
45
+ // expected-note@-3{{force-unwrap}}
38
46
let _: Coat = prop. iuo!. optional!( )
39
47
let _: Coat = prop. iuo!. optional!( ) !
40
48
0 commit comments