We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1395af1 commit 741d1bfCopy full SHA for 741d1bf
test/attr/spi_available.swift
@@ -0,0 +1,10 @@
1
+// RUN: %target-typecheck-verify-swift
2
+
3
+@_spi_available(*, deprecated, renamed: "another") // expected-error {{SPI available only supports introducing version on specific platform}}
4
+public class SPIClass1 {}
5
6
+@_spi_available(*, unavailable) // expected-error {{SPI available only supports introducing version on specific platform}}
7
+public class SPIClass2 {}
8
9
+@_spi_available(AlienPlatform 5.2, *) // expected-warning {{unrecognized platform name 'AlienPlatform'}}
10
+public class SPIClass3 {}
0 commit comments