Last active
January 14, 2017 16:42
-
-
Save mgadda/72ea450ec282c210f33ae6ec80f1acce to your computer and use it in GitHub Desktop.
Example which causes swiftc to hang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typealias Bar = Foo<Int> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typealias Foo<T> = T |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PackageDescription | |
let package = Package( | |
name: "generic_typealias_issue" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apparent requirements to reproduce:
Foo<T>
andBar
must be defined in separate filesFoo<T>
must take a type parameterSteps to reproduce:
git clone https://gist.github.com/mgadda/72ea450ec282c210f33ae6ec80f1acce generic_typealias_issue cd generic_typealias_issue swift build