mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
29 lines
493 B
Swift
29 lines
493 B
Swift
// RUN: not %target-swift-frontend %s -parse
|
|
|
|
// 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 i<m>: j {
|
|
f l: m init(l: m) {
|
|
k{
|
|
}
|
|
class k {
|
|
func m<l:m
|
|
}
|
|
structunc> (l, l -> l) -> l {
|
|
f k f.i = {
|
|
}
|
|
{
|
|
l)}
|
|
n e {
|
|
}
|
|
class f: e{ class func i {}
|
|
func h<j>() {
|
|
l c h(l: Int = m) {
|
|
}
|
|
func j<d>() -> (d, d -> d) -> d {
|
|
b l b.k , l : b l l.j == l> (j: l) {
|
|
}
|
|
enum S<T> : P {
|