Skip to content

Commit 4fbfeb6

Browse files
authored
Changing enums to static immutable
Changing enums to static immutable because that is what Travis CI is telling me to do
1 parent 97efba1 commit 4fbfeb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/experimental/ndslice/selection.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ template pack(K...)
105105
auto a = r.sliced(3, 4, 5, 6);
106106
auto b = a.pack!2;
107107

108-
enum res1 = [3, 4];
109-
enum res2 = [5, 6];
108+
static immutable res1 = [3, 4];
109+
static immutable res2 = [5, 6];
110110
assert(b.shape == res1);
111111
assert(b[0, 0].shape == res2);
112112
assert(a == b);

0 commit comments

Comments
 (0)