Revision 2d803f30ef2ca9eb143da9b32a6243d31e85aa18 authored by Martin Holters on 27 April 2017, 04:03:47 UTC, committed by Jeff Bezanson on 27 April 2017, 04:03:47 UTC
* Only evaluate `fexpr` in `fexpr(kw=...)` once Lower e.g. `get_inner()(kw=1)` to ``` SSAValue(n) = get_inner() ((Core.kwfunc)(SSAValue(n)))((Base.vector_any)(:kw, 1), SSAValue(n)) ``` instead of ``` ((Core.kwfunc)(get_inner()))((Base.vector_any)(:kw, 1), get_inner()) ``` as the latter would call `get_inner` twice. Fixes #21518.
1 parent 67fdcf2
UnicodeError.jl
# This file is a part of Julia. License is MIT: https://julialang.org/license
@testset "invalid utf8" begin
let io = IOBuffer()
show(io, UnicodeError(Base.UTF_ERR_SHORT, 1, 10))
check = "UnicodeError: invalid UTF-8 sequence starting at index 1 (0xa missing one or more continuation bytes)"
@test String(take!(io)) == check
end
end
Computing file changes ...