File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 1
- // RUN: not %target-swift-frontend -diagnostic-style=swift -typecheck %/s 2>&1 | %FileCheck %s --dump-input=always
1
+ // RUN: not %target-swift-frontend -diagnostic-style=swift -typecheck %/s 2>&1 | %FileCheck %s
2
2
3
3
// REQUIRES: swift_swift_parser
4
4
@@ -70,11 +70,6 @@ foo(b:
70
70
func test( a: Int ) { }
71
71
func test( a: Int ) { }
72
72
73
- struct DuplicateInits {
74
- init ( a: Int ) { }
75
- init ( a: Int ) { }
76
- }
77
-
78
73
// Test fallback for non-ASCII characters.
79
74
// CHECK: SOURCE_DIR{{[/\]+}}test{{[/\]+}}diagnostics{{[/\]+}}pretty-printed-diagnostics.swift:[[#LINE:]]:11
80
75
// CHECK: [[#LINE-2]] |
@@ -99,9 +94,3 @@ struct DuplicateInits {
99
94
// CHECK: | `- note: 'test(a:)' previously declared here
100
95
// CHECK: [[#LINE]] | func test(a: Int) {}
101
96
// CHECL: [[#LINE+1]] | `- error: invalid redeclaration of 'test(a:)'
102
-
103
- // CHECK: SOURCE_DIR{{[/\]+}}test{{[/\]+}}diagnostics{{[/\]+}}pretty-printed-diagnostics.swift:[[#LINE:]]:3
104
- // CHECK: [[#LINE-1]] | init(a: Int) {}
105
- // CHECK: | `- note: 'init(a:)' previously declared here
106
- // CHECK: [[#LINE]] | init(a: Int) {}
107
- // CHECL: [[#LINE+1]] | `- error: invalid redeclaration of 'init(a:)'
You can’t perform that action at this time.
0 commit comments