mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
15 lines
406 B
Swift
15 lines
406 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -primary-file %s %S/Inputs/0177-rdar-33093935-other.swift -verify
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
extension A {
|
|
static func superclass() -> AnyObject? { return nil }
|
|
@objc var name: String { return "hi" }
|
|
}
|
|
|
|
class B: A {
|
|
@objc var foo = superclass()?.name // expected-error{{property 'foo' references itself}}
|
|
}
|