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 b7eecc3 commit 1c86dd7Copy full SHA for 1c86dd7
test/diagnostics/pretty-printed-diagnostics.swift
@@ -66,6 +66,9 @@ foo(b:
66
1,
67
a: 2)
68
69
+// Test for child notes attached directly to a "primary" error/warning diagnostic
70
+func test(a: Int) {}
71
72
73
// Test fallback for non-ASCII characters.
74
// CHECK: SOURCE_DIR{{[/\]+}}test{{[/\]+}}diagnostics{{[/\]+}}pretty-printed-diagnostics.swift:[[#LINE:]]:11
@@ -85,3 +88,7 @@ foo(b:
85
88
// CHECK: [[#LINE]] | foo(b: 1, a: 2)
86
89
// CHECK: | `- error: argument 'a' must precede argument 'b'
87
90
// CHECK: [[#LINE+1]] |
91
+
92
+// CHECK: SOURCE_DIR{{[/\]+}}test{{[/\]+}}diagnostics{{[/\]+}}pretty-printed-diagnostics.swift:[[#LINE:]]:6
93
+// CHECK: [[#LINE-1]] | func test(a: Int) {}
94
+// CHECK: | `- note: 'test(a:)' previously declared here
0 commit comments