mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
349 B
Swift
12 lines
349 B
Swift
// RUN: %target-swift-frontend -dump-ast %s | %FileCheck %s
|
|
|
|
// CHECK: func_decl{{.*}}"clone()" interface type="(Android) -> () -> Self"
|
|
|
|
class Android {
|
|
func clone() -> Self {
|
|
// CHECK: closure_expr type="() -> Self" {{.*}} discriminator=0 nonisolated captures=(<dynamic_self> self<direct>)
|
|
let fn = { return self }
|
|
return fn()
|
|
}
|
|
}
|