mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
32 lines
504 B
Swift
32 lines
504 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
|
|
|
|
struct j<l : o> {
|
|
func a<l>() -> [j<l>] {
|
|
return []
|
|
l j l.n = {
|
|
}
|
|
{
|
|
l) {
|
|
n }
|
|
}
|
|
protocol f {
|
|
}
|
|
class l: f{ class func n {}
|
|
func a<i>() {
|
|
b b {
|
|
}
|
|
}
|
|
class a<f : b, l : b m f.l == l> {
|
|
}
|
|
protocol b {
|
|
}
|
|
struct j<n : b> : b {
|
|
protocol p{
|
|
}
|
|
protocol g : e { func e
|