We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b14ca7 commit 97efba1Copy full SHA for 97efba1
std/experimental/ndslice/selection.d
@@ -105,8 +105,10 @@ template pack(K...)
105
auto a = r.sliced(3, 4, 5, 6);
106
auto b = a.pack!2;
107
108
- assert(b.shape == [3, 4]);
109
- assert(b[0, 0].shape == [5, 6]);
+ enum res1 = [3, 4];
+ enum res2 = [5, 6];
110
+ assert(b.shape == res1);
111
+ assert(b[0, 0].shape == res2);
112
assert(a == b);
113
static assert(is(typeof(b) == typeof(a.pack!2)));
114
static assert(is(typeof(b) == Slice!(2, Slice!(3, typeof(r)))));
0 commit comments