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 a6b5a41 commit edd3015Copy full SHA for edd3015
test/TypeDecoder/opaque_return_type.swift
@@ -0,0 +1,17 @@
1
+// RUN: %empty-directory(%t)
2
+
3
+// RUN: %target-build-swift -emit-executable %s -g -o %t/opaque_return_type -emit-module
4
+// RUN: sed -ne '/\/\/ *DEMANGLE: /s/\/\/ *DEMANGLE: *//p' < %s > %t/input
5
+// RUN: %lldb-moduleimport-test %t/opaque_return_type -type-from-mangled=%t/input | %FileCheck %s
6
7
+protocol P {}
8
+extension Int: P {}
9
10
+func foo() -> some P { return 0 }
11
+var prop: some P { return 0 }
12
13
+// DEMANGLE: $s18opaque_return_type3fooQryFQOyQo_
14
+// CHECK: some P
15
16
+// DEMANGLE: $s18opaque_return_type4propQrvpQOyQo_
17
0 commit comments