Files
swift-mirror/validation-test/compiler_crashers_fixed/2206-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

17 lines
370 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
func a: NSObject {
class C(x(h: AnyObject) {
struct c<T: ("
class A {
class A<H : NSObject {
convenience init<h : b in c {
}
}
class A : b[1])
class b: b: