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 ad8247c commit 82341bfCopy full SHA for 82341bf
src/ranges.jl
@@ -301,7 +301,7 @@ end
301
@inline function _try_static(::StaticInt{M}, ::StaticInt{N}) where {M,N}
302
@assert false "Unequal Indices: StaticInt{$M}() != StaticInt{$N}()"
303
end
304
-@noinline unequal_error(x,y) = throw("Unequal Indices: x == $x != $y == y")
+@noinline unequal_error(x,y) = @assert false "Unequal Indices: x == $x != $y == y"
305
@inline function check_equal(x, y)
306
x == y || unequal_error(x,y)
307
0 commit comments