From af88f43783a9dce5c36bdebc3b6a2cb219413af8 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Wed, 30 Jul 2025 14:29:22 +0200 Subject: [PATCH] spec/pragma: Fix example for pragma(mangle) The .stringof property attempts to mangle the type as the string literal "MyClassA!(int)", which isn't what the example expects. --- spec/pragma.dd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/pragma.dd b/spec/pragma.dd index 985ecaf33e..d25930f483 100644 --- a/spec/pragma.dd +++ b/spec/pragma.dd @@ -302,7 +302,7 @@ $(H3 $(LNAME2 mangle, $(D pragma mangle))) extern(C++) struct _function {} template ScopeClass(C) { - pragma(mangle, C.stringof, C) + pragma(mangle, C) struct ScopeClass { align(__traits(classInstanceAlignment, C)) void[__traits(classInstanceSize, C)] buffer; } } extern(C++)