Skip to content

Instantly share code, notes, and snippets.

@banjun
Last active June 22, 2016 01:24
Show Gist options
  • Save banjun/465d9533bbaa62654c71b2e4a2b7da37 to your computer and use it in GitHub Desktop.
Save banjun/465d9533bbaa62654c71b2e4a2b7da37 to your computer and use it in GitHub Desktop.
// causes crash of swift-3.0-preview-1-SNAPSHOT-2016-05-31-a-osx and 2016-06-06
// /Library/Developer/Toolchains/swift-3.0-preview-1-SNAPSHOT-2016-05-31-a.xctoolchain/usr/bin/swift swift3-preview1-crash-example1.swift
// /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-06-06-a.xctoolchain/usr/bin/swift swift3-preview1-crash-example1.swift
// removing any of Equatable or type constraints will make it
protocol P1 {
associatedtype A1: Equatable
}
class C1<T: Equatable> {
}
class C2<T: Equatable, U: P1 where U.A1 == T>: C1<T> {
}
@banjun
Copy link
Author

banjun commented Jun 22, 2016

submitted to the radar and JIRA.
https://bugs.swift.org/browse/SR-1813

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