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
12 lines
263 B
Swift
12 lines
263 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
|
|
|
|
class A {
|
|
deinit {
|
|
class B : A> {
|
|
}
|
|
class A : A
|