mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
fix property enforcement
This commit is contained in:
parent
0c58d564e2
commit
e96c387027
1 changed files with 1 additions and 1 deletions
|
@ -3012,7 +3012,7 @@ version (unittest)
|
|||
@property bool empty() { return array.length == 0; }
|
||||
@property C front() { return array[0]; }
|
||||
@property C back() { return array[$ - 1]; }
|
||||
@property size_t opDollar() { return length(); }
|
||||
@property size_t opDollar() { return length; }
|
||||
C opIndex(size_t i) { return array[i]; }
|
||||
}
|
||||
void popFront() { array = array[1 .. $]; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue