Files
swift-mirror/test/Constraints/rdar160135085.swift
Hamish Knight 20202f53a9 [CS] Quick workaround for rdar://160135085
Temporarily disable the checking requirements for typealias types,
and desugar the typealias since the constraint system does not
currently correctly handle type variables in the underlying type.
2025-09-23 14:36:06 +01:00

25 lines
526 B
Swift

// RUN: %empty-directory(%t/modules)
// RUN: split-file %s %t
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/modules/A.swiftmodule -module-name A %t/a.swift
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/modules/B.swiftmodule -module-name B -I %t/modules %t/b.swift
// RUN: %target-swift-frontend -typecheck -I %t/modules %t/c.swift
//--- a.swift
public struct S<T> {
public init(_ x: T) {}
}
//--- b.swift
import A
public typealias S = A.S
//--- c.swift
import A
import B
_ = S(0)