mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
400 B
Swift
13 lines
400 B
Swift
// REQUIRES: swift_swift_parser
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -verify -plugin-path %swift-plugin-dir
|
|
|
|
@DebugDescription
|
|
struct MyStruct {
|
|
var name: String { "thirty" }
|
|
|
|
// expected-error @+1 {{cannot reference computed properties}}
|
|
var debugDescription: String { "name: \(name)" }
|
|
}
|