mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
25 lines
526 B
Swift
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)
|