https://issues.dlang.org/show_bug.cgi?id=12973
Issue ID: 12973
Summary: Local import std.math for exponentiation gives
undefined identifier "std"
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
I was in the process of preparing a different bug report, and I found this bug.
Global scope import works though.
// CODE:
void main()
{
import std.math;
ulong three = 3uL;
// next line gives: Error: undefined identifier 'std'
assert(three^^40uL == 12157665459056928801uL);
}
--