mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
15 lines
307 B
Swift
15 lines
307 B
Swift
// RUN: %target-typecheck-verify-swift -disable-availability-checking -parse-as-library
|
|
// REQUIRES: concurrency
|
|
// This should pass without any warnings or errors
|
|
|
|
@MainActor
|
|
var floofer: Int = 42
|
|
|
|
@main struct Doggo { }
|
|
|
|
extension Doggo {
|
|
static func main() {
|
|
print("Doggo value: \(floofer)")
|
|
}
|
|
}
|