mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The code would generate different diagnosics depending on the cycle having length 1 or longer. The length 1 case was broken if the path had a prefix that wasn't part of the cycle, eg if we have C : A, A : A and visit C first. Swift SVN r28317
9 lines
248 B
Swift
9 lines
248 B
Swift
// RUN: not %target-swift-frontend %s -parse
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// Test case found by fuzzing
|
|
|
|
protocol c : A: c
|
|
protocol A : A
|