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
// DIAG_BUFFERS: @__swiftmacro_9MacroUser33_{{.*}}9stringifyfMf1_{{.*}}warning: 'deprecated()' is deprecated
82
-
// DIAG_BUFFERS: @__swiftmacro_9MacroUser33_{{.*}}9stringifyfMf2_{{.*}}warning: 'deprecated()' is deprecated
83
+
// DIAG_BUFFERS-DAG: @__swiftmacro_9MacroUser33_{{.*}}9stringifyfMf1_{{.*}}warning: 'deprecated()' is deprecated
84
+
// DIAG_BUFFERS-DAG: @__swiftmacro_9MacroUser33_{{.*}}9stringifyfMf2_{{.*}}warning: 'deprecated()' is deprecated
83
85
84
86
#varValue
85
87
86
88
func testGlobalVariable(){
87
89
_ = value
88
90
}
91
+
92
+
#if TEST_DIAGNOSTICS
93
+
94
+
// expected-note @+1 6 {{in expansion of macro 'anonymousTypes' here}}
95
+
#anonymousTypes(causeErrors:true){"foo"}
96
+
// DIAG_BUFFERS-DAG: @__swiftmacro_9MacroUser33{{.*}}anonymousTypesfMf2_{{.*}}error: use of protocol 'Equatable' as a type must be written 'any Equatable'
97
+
// DIAG_BUFFERS-DAG: @__swiftmacro_9MacroUser03{{.*}}anonymousTypes{{.*}}introduceTypeCheckingErrorsfMf0_{{.*}}error: use of protocol 'Hashable' as a type must be written 'any Hashable'
98
+
99
+
// expected-note @+1 2 {{in expansion of macro 'anonymousTypes' here}}
100
+
#anonymousTypes {()->Stringin
101
+
// expected-error @+1 {{use of protocol 'Equatable' as a type must be written 'any Equatable'}}
0 commit comments