Skip to content

Commit fe93fb1

Browse files
ibuclawdlang-bot
authored andcommitted
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.
1 parent 887f574 commit fe93fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/pragma.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ $(H3 $(LNAME2 mangle, $(D pragma mangle)))
302302
extern(C++) struct _function {}
303303
template ScopeClass(C)
304304
{
305-
pragma(mangle, C.stringof, C)
305+
pragma(mangle, C)
306306
struct ScopeClass { align(__traits(classInstanceAlignment, C)) void[__traits(classInstanceSize, C)] buffer; }
307307
}
308308
extern(C++)

0 commit comments

Comments
 (0)