D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22299 - RedBlackTree.empty missing "const" annotation
Summary: RedBlackTree.empty missing "const" annotation
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P3 major
Assignee: No Owner
URL: http://dlang.org/
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-12 12:32 UTC by Eyal
Modified: 2022-04-13 13:24 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Eyal 2021-09-12 12:32:36 UTC
This does not compile:

    const(RedBlackTree!int) tree;
    assert(tree.empty); // "empty" not valid on a const object
Comment 1 Dennis 2022-04-13 13:24:40 UTC
Fixed by https://github.com/dlang/phobos/pull/7644