Skip to content

Instantly share code, notes, and snippets.

@mgadda
Last active January 14, 2017 16:42
Show Gist options
  • Save mgadda/72ea450ec282c210f33ae6ec80f1acce to your computer and use it in GitHub Desktop.
Save mgadda/72ea450ec282c210f33ae6ec80f1acce to your computer and use it in GitHub Desktop.
Example which causes swiftc to hang
typealias Bar = Foo<Int>
typealias Foo<T> = T
import PackageDescription
let package = Package(
name: "generic_typealias_issue"
)
@mgadda
Copy link
Author

mgadda commented Jan 14, 2017

Apparent requirements to reproduce:

  • Foo<T> and Bar must be defined in separate files
  • Foo<T> must take a type parameter

Steps to reproduce:

git clone https://gist.github.com/mgadda/72ea450ec282c210f33ae6ec80f1acce generic_typealias_issue
cd generic_typealias_issue
swift build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment