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
Copy file name to clipboardExpand all lines: test/Sema/availability_versions.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -845,25 +845,25 @@ class SubWithUnavailableMembers : SuperWithAlwaysAvailableMembers {
845
845
requiredinit(){}
846
846
847
847
@available(OSX, unavailable)
848
-
overridefunc shouldAlwaysBeAvailableMethod(){ // expected-error {{overriding 'shouldAlwaysBeAvailableMethod' must be as available as declaration it overrides}}
848
+
overridefunc shouldAlwaysBeAvailableMethod(){ // expected-warning {{overriding 'shouldAlwaysBeAvailableMethod' must be as available as declaration it overrides}}
849
849
}
850
850
851
851
@available(OSX, unavailable)
852
-
overridevarshouldAlwaysBeAvailableProperty:Int{ // expected-error {{overriding 'shouldAlwaysBeAvailableProperty' must be as available as declaration it overrides}}
852
+
overridevarshouldAlwaysBeAvailableProperty:Int{ // expected-warning {{overriding 'shouldAlwaysBeAvailableProperty' must be as available as declaration it overrides}}
0 commit comments