Skip to content

Commit 82341bf

Browse files
committed
Make Indices still throw AssertionError.
1 parent ad8247c commit 82341bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ranges.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ end
301301
@inline function _try_static(::StaticInt{M}, ::StaticInt{N}) where {M,N}
302302
@assert false "Unequal Indices: StaticInt{$M}() != StaticInt{$N}()"
303303
end
304-
@noinline unequal_error(x,y) = throw("Unequal Indices: x == $x != $y == y")
304+
@noinline unequal_error(x,y) = @assert false "Unequal Indices: x == $x != $y == y"
305305
@inline function check_equal(x, y)
306306
x == y || unequal_error(x,y)
307307
end

0 commit comments

Comments
 (0)