mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
66 lines
863 B
Swift
66 lines
863 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
|
|
|
|
class w<r>: c {
|
|
init(g: r) {
|
|
struct t : o {
|
|
}
|
|
q t<where n.v == t<v : o u m : v {
|
|
}
|
|
struct c<e> {
|
|
}
|
|
}
|
|
struct e : f {
|
|
}
|
|
func i<g : g, e : f where e.f == g> (c: e) {
|
|
}
|
|
func i<h : f where h.f == c> (c: h) {
|
|
}
|
|
class a<f : g, g : g where f.f == g> {
|
|
}
|
|
protocol g {
|
|
}
|
|
struct c<h : g> : g {
|
|
typealias e = a<c<h>, f>
|
|
protocol b {
|
|
}
|
|
struct c {
|
|
func e() {
|
|
docol t {
|
|
}
|
|
protocol d : t {
|
|
}
|
|
protocol g : t {
|
|
}
|
|
})
|
|
}
|
|
protocol e {
|
|
}
|
|
struct m<v : e> {
|
|
}
|
|
protocol n {
|
|
g == o>(n: m<v>) {
|
|
}
|
|
}
|
|
struct e<v> {
|
|
}
|
|
struct d<x> : e {
|
|
func d(d: d.p) {
|
|
}
|
|
}
|
|
class e<v : e> {
|
|
}
|
|
class A<T : A> {
|
|
}
|
|
func c<d {
|
|
enum c {
|
|
func e
|
|
var _ = e
|
|
}
|
|
}
|
|
protocol a {
|