Skip to content

Commit f2dd7a8

Browse files
committed
fix lightConst/Immutable
1 parent 931152d commit f2dd7a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/mir/ndslice/slice.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,13 +908,13 @@ public:
908908
///
909909
auto lightImmutable()() scope return immutable @property
910910
{
911-
return Slice!(LightImmutableOf!Iterator, N, kind)(_structure, _iterator.lightImmutable);
911+
return Slice!(LightImmutableOf!Iterator, N, kind)(_structure, .lightImmutable(_iterator));
912912
}
913913

914914
/// ditto
915915
auto lightConst()() scope return const @property
916916
{
917-
return Slice!(LightConstOf!Iterator, N, kind)(_structure, _iterator.lightConst);
917+
return Slice!(LightConstOf!Iterator, N, kind)(_structure, .lightConst(_iterator));
918918
}
919919

920920
/// ditto

0 commit comments

Comments
 (0)