Avatar
@swift-main @swift-6.2.3 -swift-version 6 protocol HogeProtocol { static func doSomething() } struct Hoge: @MainActor HogeProtocol { @MainActor static func doSomething() { MainActor.assertIsolated() } } nonisolated func useH<H: HogeProtocol>(_: H.Type) async { H.doSomething() } await useH(Hoge.self)