Skip to content

Commit 805a473

Browse files
committed
fix version(D_Exceptions)
1 parent 3846f05 commit 805a473

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/mir/ndslice/topology.d

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4106,7 +4106,6 @@ template member(string name)
41064106
assert(matrix.member!"y" == [2, 3].iota * 2);
41074107
}
41084108

4109-
41104109
version(D_Exceptions)
41114110
private immutable orthogonalReduceFieldException = new Exception("orthogonalReduceField: Slice composed of fields must not be empty");
41124111

@@ -4130,7 +4129,7 @@ template orthogonalReduceField(alias fun)
41304129
if (_expect(slice.empty, false))
41314130
{
41324131
version(D_Exceptions)
4133-
return orthogonalReduceFieldException;
4132+
throw orthogonalReduceFieldException;
41344133
else
41354134
assert(0);
41364135
}

0 commit comments

Comments
 (0)