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/SPI/protocol_requirement.swift
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@ public protocol PublicProtoRejected {
7
7
@_spi(Private)
8
8
func reqWithoutDefault() // expected-error{{protocol requirement 'reqWithoutDefault()' cannot be declared '@_spi' without a default implementation in a protocol extension}}
9
9
10
+
@_spi(Private)
11
+
func reqWithSharedName(_:Int) // expected-error{{protocol requirement 'reqWithSharedName' cannot be declared '@_spi' without a default implementation in a protocol extension}}
12
+
10
13
@_spi(Private)
11
14
varproperty:Int{getset} // expected-error{{protocol requirement 'property' cannot be declared '@_spi' without a default implementation in a protocol extension}}
12
15
@@ -26,6 +29,9 @@ public protocol PublicProtoRejected {
0 commit comments