Files
swift-mirror/test/Macros/DebugDescription/error_protocol.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
327 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
// expected-error @+1 {{cannot be attached to a protocol}}
@DebugDescription
protocol MyProto {
func action()
}