mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
e57f70bd4d
This removes the leading underscore from the macro.
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)" }
|
|
}
|