File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 66
66
1,
67
67
a: 2)
68
68
69
+ // Test for child notes attached directly to a " primary" error/ warning diagnostic
70
+ func test( a: Int ) { }
71
+ func test( a: Int ) { }
69
72
70
73
// Test fallback for non-ASCII characters.
71
74
// CHECK: SOURCE_DIR{{[/\]+}}test{{[/\]+}}diagnostics{{[/\]+}}pretty-printed-diagnostics.swift:[[#LINE:]]:11
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
95
+ // CHECK: [[#LINE]] | func test(a: Int) {}
96
+ // CHECL: [[#LINE+1]] | `- error: invalid redeclaration of 'test(a:)'
You can’t perform that action at this time.
0 commit comments