We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b268bd commit 806ee1dCopy full SHA for 806ee1d
test/DebugInfo/Destructors.swift
@@ -1,15 +1,9 @@
1
// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s
2
3
-func markUsed<T>(t: T) {}
4
-
5
-class Foo {
+public class Foo {
6
// CHECK: !DISubprogram(name: "deinit", linkageName: "_TFC11Destructors3FooD"
7
// CHECK-SAME: line: [[@LINE-2]]
8
// CHECK-SAME: isDefinition: true
9
var x : Int64
10
init(x: Int64) { self.x = x }
11
- func bar() -> (() -> ()) { return { markUsed(self.x) } }
12
}
13
14
-var f = Foo(x: 1)
15
-f.bar()()
0 commit comments