mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
38 lines
562 B
Swift
38 lines
562 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
|
|
|
|
dynamic
|
|
)
|
|
func n<w>() -> (w, w -> w) -> w {
|
|
o m o.q = {
|
|
}
|
|
{
|
|
w) {
|
|
k }
|
|
}
|
|
protocol n {
|
|
class func q()
|
|
}
|
|
class o: n{ class func q {}
|
|
func p(e: Int = x) {
|
|
}
|
|
let c = p
|
|
c()
|
|
func r<o: y, s q n<s> ==(r(t))
|
|
protocol p : p {
|
|
}
|
|
protocol p {
|
|
class func c()
|
|
}
|
|
class e: p {
|
|
class func c() { }
|
|
}
|
|
(e() u p).v.c()
|
|
k e.w == l> {
|
|
}
|
|
func p(c: Any, init(b: c) {
|
|
: e,
|