Files
swift-mirror/validation-test/compiler_crashers_fixed/1973-void.swift
Slava Pestov 74c2cb7820 Sema: more robust diagnostic for circular inheritance
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
2015-05-08 17:14:57 +00:00

24 lines
400 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 c {
struct e = d.init() {
class B : A, x in c : Hashable> {
class a {
func a() {
class B : U : () {
class A {
})
}
}
struct S) {
}
}
class C<S : Any) -> String {
}
}
class A : A?