mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
14 lines
331 B
Swift
14 lines
331 B
Swift
// RUN: %swift %s -parse -verify
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// http://www.openradar.me/17157251
|
|
|
|
// Case 1.
|
|
class A: A { // expected-error {{circular class inheritance A}}
|
|
}
|
|
|
|
// Case 2.
|
|
class B : C { // expected-error {{circular class inheritance B}}
|
|
}
|
|
|
|
typealias C = B
|