D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6731 - [SafeD] AA .length property is not @safe/@trusted
Summary: [SafeD] AA .length property is not @safe/@trusted
Status: RESOLVED DUPLICATE of issue 6357
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 07:53 UTC by Dmitry Olshansky
Modified: 2011-09-26 07:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Dmitry Olshansky 2011-09-26 07:53:24 UTC
Test:

@safe void foo()
{
	int[int] m;
	assert(m.length == 0);
}

Fails on dmd 2.055 with:

aa.d(6): Error: safe function 'foo' cannot call system function 'length'
Comment 1 Dmitry Olshansky 2011-09-26 07:55:45 UTC

*** This issue has been marked as a duplicate of issue 6357 ***