Files
swift-mirror/test/Concurrency/async_main_mainactor_isolation.swift
2021-10-06 11:08:43 -04:00

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)")
}
}