mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
346 B
Swift
12 lines
346 B
Swift
// Checks that we don't crash.
|
|
// RUN: %sourcekitd-test -req=cursor -pos=8:19 %s -- %s | %FileCheck %s
|
|
// CHECK: source.lang.swift.decl.function.method.instance
|
|
|
|
public extension AnyIterator {
|
|
@available(*, deprecated)
|
|
public extension AnySequence {
|
|
public func take(n: Int) -> AnySequence<Element> {
|
|
return AnySequence([])
|
|
}
|
|
}
|