Files
swift-mirror/test/Macros/DebugDescription/error_interpolation_expression.swift
Dave Lee e57f70bd4d [Debugging] Add DebugDescriptionMacro experimental feature (#73107)
This removes the leading underscore from the macro.
2024-04-18 17:25:44 -07:00

11 lines
370 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 {
// expected-error @+1 {{only references to stored properties are allowed}}
var debugDescription: String { "\(1)" }
}