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/Parse/original_defined_in_attr.swift
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,5 +20,11 @@ class ToplevelClass3 {}
20
20
21
21
@_originallyDefinedIn(module:"foo",*13.13) // expected-warning {{* as platform name has no effect}} expected-error {{expected at least one platform version in @_originallyDefinedIn}}
@_originallyDefinedIn(module:"foo", OSX 13.14,*7.0) // expected-warning {{* as platform name has no effect}}
24
-
class ToplevelClass4{}
23
+
@_originallyDefinedIn(module:"foo", OSX 13.14,*7.0) // expected-warning {{* as platform name has no effect}} expected-error {{duplicate version number for platform OSX}}
24
+
class ToplevelClass4{
25
+
@_originallyDefinedIn(module:"foo", OSX 13.13) // expected-error {{'@_originallyDefinedIn' attribute cannot be applied to this declaration}}
0 commit comments