[Issue 21668] New: Cannot declare ref parameter of opaque type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 28 02:51:38 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21668
Issue ID: 21668
Summary: Cannot declare ref parameter of opaque type
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: moonlightsentinel at disroot.org
Functions cannot accept opaque types by ref (pointer and slices work already):
----------------------------------------
struct Opaque;
void byPtr(Opaque*) {}
void byRef(ref Opaque) {} // Fails
void bySlice(Opaque[]) {}
----------------------------------------
--
More information about the Digitalmars-d-bugs
mailing list