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 e1e0f54 commit db376a9Copy full SHA for db376a9
test/SourceKit/CursorInfo/rdar_70017224.swift
@@ -0,0 +1,15 @@
1
+// RUN: %empty-directory(%t)
2
+
3
+// RUN: echo '@_typeEraser(AnyView) public protocol View {}' > %t/Module.swift
4
+// RUN: echo 'public struct AnyView : View {' >> %t/Module.swift
5
+// RUN: echo ' public init<T: View>(erasing: T) {}' >> %t/Module.swift
6
+// RUN: echo '}' >> %t/Module.swift
7
+// RUN: %swift -emit-module -o %t/Module.swiftmodule %t/Module.swift -parse-as-library
8
9
+// RUN: %sourcekitd-test -req=cursor -pos=13:13 %s -- -I %t %s | %FileCheck %s
10
11
+import Module
12
13
+struct Foo: View {}
14
15
+// CHECK: <Declaration>@_typeEraser(<Type usr="s:6Module7AnyViewV">AnyView</Type>) protocol View</Declaration>
0 commit comments