Skip to content

Commit 977301e

Browse files
committed
---
yaml --- r: 347502 b: refs/heads/master c: d491d29 h: refs/heads/master
1 parent 69b87e8 commit 977301e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a91003c396a29bc65e3d18892e66c04584ef0a66
2+
refs/heads/master: d491d2933ac9e682504bf9b319f3ea667c97937a
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/test/decl/protocol/conforms/circular_validation.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ struct S : P { // expected-error {{type 'S' does not conform to protocol 'P'}}
1111
static var x = 0 // expected-note {{candidate operates on a type, not an instance as required}}
1212
var x = S.x // expected-note {{candidate references itself}}
1313
}
14+
15+
// FIXME: Lousy diagnostics on this case.
16+
protocol SR9224_Foo: SR9224_Foobar {} // expected-error 2 {{protocol 'SR9224_Foo' refines itself}}
17+
protocol SR9224_Bar: SR9224_Foobar {} // expected-error {{protocol 'SR9224_Bar' refines itself}} expected-note {{protocol 'SR9224_Bar' declared here}}
18+
typealias SR9224_Foobar = SR9224_Foo & SR9224_Bar

0 commit comments

Comments
 (0)