mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
22 lines
402 B
Swift
22 lines
402 B
Swift
// RUN: not --crash %target-swift-frontend %s -parse
|
|
// XFAIL: no_asserts
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// Test case found by fuzzing
|
|
|
|
func a<i>() {
|
|
b b {
|
|
}
|
|
protocol b {
|
|
typealias k
|
|
}
|
|
struct j<n : b> : b {
|
|
c == .b {
|
|
}
|
|
enum S<T> : P {
|
|
func f<T>() -> T -> T {
|
|
}
|
|
protocol P {
|
|
func f<T>()(T) -> T
|