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
@_spi(S)publicfunc spiUseOfInternalType()->InternalClass{fatalError()} // expected-error{{function cannot be declared public because its result uses an internal type}}
27
27
@_spi(S)publicfunc spiUseOfPrivateType(_ a:PrivateClass){fatalError()} // expected-error{{function cannot be declared public because its parameter uses a private type}}
28
28
29
+
publicvarglobalArrayWithSPISetter:[Int]{
30
+
get{fatalError()}
31
+
@_spi(S)set{}
32
+
}
33
+
29
34
@inlinable
30
35
func inlinable()->SPIClass{ // expected-error {{class 'SPIClass' cannot be used in an '@inlinable' function because it is SPI}}
31
36
spiFunc() // expected-error {{global function 'spiFunc()' cannot be used in an '@inlinable' function because it is SPI}}
32
37
_ =SPIClass() // expected-error {{class 'SPIClass' cannot be used in an '@inlinable' function because it is SPI}}
33
38
// expected-error@-1 {{initializer 'init()' cannot be used in an '@inlinable' function because it is SPI}}
39
+
globalArrayWithSPISetter =[] // expected-error {{setter 'globalArrayWithSPISetter' cannot be used in an '@inlinable' function because it is SPI}}
40
+
globalArrayWithSPISetter.append(0) // expected-error {{setter 'globalArrayWithSPISetter' cannot be used in an '@inlinable' function because it is SPI}}
0 commit comments