Files
swift-mirror/test/ModuleInterface/isolated_conformance.swift
Becca Royal-Gordon 1f008fb0d0 [ModuleInterface] Enable module selectors by default
And update tests to use them.

This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130.

Fixes rdar://169749886.
2026-02-20 00:35:23 -08:00

22 lines
591 B
Swift

// RUN: %target-swift-frontend -typecheck -swift-version 6 -enable-library-evolution -module-name isolated_conformance -emit-module-interface-path - %s | %FileCheck %s
// REQUIRES: concurrency
public protocol MyProtocol {
func f()
}
@MainActor
public class MyClass { }
// CHECK: extension isolated_conformance::MyClass : @{{.*}}MainActor isolated_conformance::MyProtocol {
extension MyClass: @MainActor MyProtocol {
@MainActor public func f() { }
}
extension MyClass: nonisolated Equatable {
nonisolated public static func ==(lhs: MyClass, rhs: MyClass) -> Bool {
false
}
}