Skip to content

Commit c04e555

Browse files
committed
Update test: protocols.swift for LifetimeDependence evaluation
Evaluating LifetimeDependence changes the order that the declarations are diagnosed. Fix this test output by flipping the order of two declarations. The new order actually makes more sense to me.
1 parent 754edc7 commit c04e555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/decl/protocol/protocols.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ struct DoesNotConform : Up {
111111

112112
// Circular protocols
113113

114+
protocol CircleStart : CircleEnd { func circle_start() } // expected-error 2 {{protocol 'CircleStart' refines itself}}
114115
protocol CircleMiddle : CircleStart { func circle_middle() }
115116
// expected-note@-1 2 {{protocol 'CircleMiddle' declared here}}
116-
protocol CircleStart : CircleEnd { func circle_start() } // expected-error 2 {{protocol 'CircleStart' refines itself}}
117117
protocol CircleEnd : CircleMiddle { func circle_end()} // expected-note 2 {{protocol 'CircleEnd' declared here}}
118118

119119
protocol CircleEntry : CircleTrivial { }

0 commit comments

Comments
 (0)