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
spiFunc() // expected-error {{global function 'spiFunc()' cannot be used in an '@inlinable' function because it is SPI}}
121
129
let _ =SPIClass() // expected-error {{class 'SPIClass' cannot be used in an '@inlinable' function because it is SPI}}
122
130
// expected-error@-1 {{initializer 'init()' cannot be used in an '@inlinable' function because it is SPI}}
131
+
let _ = o1 - o2 // expected-error {{operator function '-' cannot be used in an '@inlinable' function because it is SPI}}
123
132
}
124
133
125
134
@_spi(S)
126
135
@inlinable
127
136
publicfunc inlinableSPI(){
128
137
spiFunc()
129
138
let _ =SPIClass()
139
+
let _ = o1 - o2
130
140
}
131
141
132
142
@_spi(S)func internalFunc(){} // expected-error {{internal global function cannot be declared '@_spi' because only public and open declarations can be '@_spi'}}
133
143
134
144
@_spi(S)packagefunc packageFunc(){} // expected-error {{package global function cannot be declared '@_spi' because only public and open declarations can be '@_spi'}}
0 commit comments