Bug 22299 – RedBlackTree.empty missing "const" annotation

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-09-12T12:32:36Z
Last change time
2022-04-13T13:24:40Z
Assigned to
No Owner
Creator
Eyal

Comments

Comment #0 by eyal — 2021-09-12T12:32:36Z
This does not compile: const(RedBlackTree!int) tree; assert(tree.empty); // "empty" not valid on a const object
Comment #1 by dkorpel — 2022-04-13T13:24:40Z