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
[Diagnostic] In no exact match cases diagnose labeling mismatch as a note
Each candidate with incorrect labels (but everything else lined up)
gets a note on its declarationm which says what is expected and what
has been given.
_ =IncompleteDesignatedInitializers(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
32
+
_ =IncompleteDesignatedInitializers(missing:0) // expected-error {{no exact matches in call to initializer}}
_ =IncompleteConvenienceInitializers(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
38
+
_ =IncompleteConvenienceInitializers(missing:0) // expected-error {{no exact matches in call to initializer}}
_ =IncompleteUnknownInitializers(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
44
+
_ =IncompleteUnknownInitializers(missing:0) // expected-error {{no exact matches in call to initializer}}
_ =IncompleteDesignatedInitializersWithCategory(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
50
+
_ =IncompleteDesignatedInitializersWithCategory(missing:0) // expected-error {{no exact matches in call to initializer}}
_ =DesignatedInitializerInAnotherModule(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
56
+
_ =DesignatedInitializerInAnotherModule(missing:0) // expected-error {{no exact matches in call to initializer}}
_ =IncompleteInitSubclass(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
66
-
_ =IncompleteInitSubclass(conveniently:0) // expected-error {{argument labels '(conveniently:)' do not match any available overloads}} expected-note {{overloads}}
67
-
_ =IncompleteInitSubclass(category:0) // expected-error {{argument labels '(category:)' do not match any available overloads}} expected-note {{overloads}}
65
+
_ =IncompleteInitSubclass(missing:0) // expected-error {{no exact matches in call to initializer}}
66
+
_ =IncompleteInitSubclass(conveniently:0) // expected-error {{no exact matches in call to initializer}}
67
+
_ =IncompleteInitSubclass(category:0) // expected-error {{no exact matches in call to initializer}}
_ =IncompleteInitSubclassImplicit(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
72
-
_ =IncompleteInitSubclassImplicit(conveniently:0) // expected-error {{argument labels '(conveniently:)' do not match any available overloads}} expected-note {{overloads}}
73
-
_ =IncompleteInitSubclassImplicit(category:0) // expected-error {{argument labels '(category:)' do not match any available overloads}} expected-note {{overloads}}
71
+
_ =IncompleteInitSubclassImplicit(missing:0) // expected-error {{no exact matches in call to initializer}}
72
+
_ =IncompleteInitSubclassImplicit(conveniently:0) // expected-error {{no exact matches in call to initializer}}
73
+
_ =IncompleteInitSubclassImplicit(category:0) // expected-error {{no exact matches in call to initializer}}
_ =IncompleteConvenienceInitSubclass(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
77
+
_ =IncompleteConvenienceInitSubclass(missing:0) // expected-error {{no exact matches in call to initializer}}
_ =IncompleteUnknownInitSubclass(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
83
+
_ =IncompleteUnknownInitSubclass(missing:0) // expected-error {{no exact matches in call to initializer}}
_ =IncompleteInitCategorySubclass(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
90
-
_ =IncompleteInitCategorySubclass(conveniently:0) // expected-error {{argument labels '(conveniently:)' do not match any available overloads}} expected-note {{overloads}}
91
-
_ =IncompleteInitCategorySubclass(category:0) // expected-error {{argument labels '(category:)' do not match any available overloads}} expected-note {{overloads}}
89
+
_ =IncompleteInitCategorySubclass(missing:0) // expected-error {{no exact matches in call to initializer}}
90
+
_ =IncompleteInitCategorySubclass(conveniently:0) // expected-error {{no exact matches in call to initializer}}
91
+
_ =IncompleteInitCategorySubclass(category:0) // expected-error {{no exact matches in call to initializer}}
_ =IncompleteInitCategorySubclassImplicit(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
96
-
_ =IncompleteInitCategorySubclassImplicit(conveniently:0) // expected-error {{argument labels '(conveniently:)' do not match any available overloads}} expected-note {{overloads}}
97
-
_ =IncompleteInitCategorySubclassImplicit(category:0) // expected-error {{argument labels '(category:)' do not match any available overloads}} expected-note {{overloads}}
95
+
_ =IncompleteInitCategorySubclassImplicit(missing:0) // expected-error {{no exact matches in call to initializer}}
96
+
_ =IncompleteInitCategorySubclassImplicit(conveniently:0) // expected-error {{no exact matches in call to initializer}}
97
+
_ =IncompleteInitCategorySubclassImplicit(category:0) // expected-error {{no exact matches in call to initializer}}
_ =DesignatedInitializerInAnotherModuleSubclass(missing:0) // expected-error {{argument labels '(missing:)' do not match any available overloads}} expected-note {{overloads}}
102
-
_ =DesignatedInitializerInAnotherModuleSubclass(conveniently:0) // expected-error {{argument labels '(conveniently:)' do not match any available overloads}} expected-note {{overloads}}
103
-
_ =DesignatedInitializerInAnotherModuleSubclass(category:0) // expected-error {{argument labels '(category:)' do not match any available overloads}} expected-note {{overloads}}
101
+
_ =DesignatedInitializerInAnotherModuleSubclass(missing:0) // expected-error {{no exact matches in call to initializer}}
102
+
_ =DesignatedInitializerInAnotherModuleSubclass(conveniently:0) // expected-error {{no exact matches in call to initializer}}
103
+
_ =DesignatedInitializerInAnotherModuleSubclass(category:0) // expected-error {{no exact matches in call to initializer}}
0 commit comments