mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
11 lines
175 B
Swift
11 lines
175 B
Swift
// RUN: not %target-swift-frontend -typecheck %s
|
|
|
|
// rdar://problem/45590743 used to crash
|
|
class Base {
|
|
var x = 0
|
|
}
|
|
|
|
class Derived : Base {
|
|
override var x = Derived().x
|
|
}
|