https://issues.dlang.org/show_bug.cgi?id=21320
Issue ID: 21320
Summary: @live mistakes borrowed pointer for owner in parameter
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
The code:
void free(int*);
@live void test1(scope int* p)
{
free(p); // should be an error because p is borrowed
}
--
