Files
swift-mirror/test/ModuleInterface/derived_conformances_nonisolated.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

19 lines
946 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-emit-module-interface(%t/Library.swiftinterface) %s -disable-availability-checking -module-name Library
// RUN: %target-swift-typecheck-module-from-interface(%t/Library.swiftinterface) -disable-availability-checking -module-name Library
// RUN: %FileCheck %s < %t/Library.swiftinterface
// REQUIRES: concurrency
// CHECK: @_Concurrency::MainActor public struct X1 : Swift::Equatable, Swift::Hashable, Swift::Codable
@MainActor public struct X1: Equatable, Hashable, Codable {
let x: Int
let y: String
// CHECK: nonisolated public static func == (a: Library::X1, b: Library::X1) -> Swift::Bool
// CHECK: nonisolated public func encode(to encoder: any Swift::Encoder) throws
// CHECK: nonisolated public func hash(into hasher: inout Swift::Hasher)
// CHECK: nonisolated public var hashValue: Swift::Int
// CHECK: nonisolated public init(from decoder: any Swift::Decoder) throws
}