Files
swift-mirror/validation-test/compiler_crashers_2/0130-sr5013.swift
Slava Pestov ccfa6e43f5 Add a crasher
2017-11-01 21:48:07 -07:00

13 lines
198 B
Swift

// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: asserts
protocol A {
associatedtype B
}
extension A {
func foo() {
(B.self as! Sequence.Type).Element
}
}