Skip to content

Commit af94871

Browse files
committed
Fix test case
1 parent 8387075 commit af94871

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/decl/class/circular_inheritance.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
// RUN: not %target-swift-frontend -typecheck -debug-cycles %s -build-request-dependency-graph -output-request-graphviz %t.dot -stats-output-dir %t/stats-dir 2> %t.cycles
55
// RUN: %FileCheck -check-prefix CHECK-DOT %s < %t.dot
66

7-
class Left // expected-error {{'Left' inherits from itself}} expected-note 2{{through reference here}}
7+
class Left // expected-error {{'Left' inherits from itself}} expected-note {{through reference here}}
88
: Right.Hand { // expected-note {{through reference here}}
9-
class Hand {} // expected-note {{through reference here}}
9+
class Hand {}
1010
}
1111

12-
class Right // expected-note 2 {{through reference here}} expected-note{{class 'Right' declared here}}
12+
class Right // expected-note {{through reference here}} expected-note{{class 'Right' declared here}}
1313
: Left.Hand { // expected-note {{through reference here}}
14-
class Hand {} // expected-error {{circular reference}}
14+
class Hand {}
1515
}
1616

1717
class C : B { } // expected-error{{'C' inherits from itself}}
@@ -30,15 +30,15 @@ class Outer {
3030
class Inner : Outer {}
3131
}
3232

33-
class Outer2 // expected-error {{'Outer2' inherits from itself}} expected-note 2 {{through reference here}}
33+
class Outer2 // expected-error {{'Outer2' inherits from itself}} expected-note {{through reference here}}
3434
: Outer2.Inner { // expected-note {{through reference here}}
3535

36-
class Inner {} // expected-error{{circular reference}}
36+
class Inner {}
3737
}
3838

39-
class Outer3 // expected-error {{'Outer3' inherits from itself}} expected-note 2 {{through reference here}}
39+
class Outer3 // expected-error {{'Outer3' inherits from itself}} expected-note {{through reference here}}
4040
: Outer3.Inner<Int> { // expected-note {{through reference here}}
41-
class Inner<T> {} // expected-error{{circular reference}}
41+
class Inner<T> {}
4242
}
4343

4444
// CHECK-DOT: digraph Dependencies

0 commit comments

Comments
 (0)