diff --git a/test/compiler/EscapeAnalysis/EscapeAnalysis.jl b/test/compiler/EscapeAnalysis/EscapeAnalysis.jl index 66ec1b0b81e4a..4799fe4cee5ca 100644 --- a/test/compiler/EscapeAnalysis/EscapeAnalysis.jl +++ b/test/compiler/EscapeAnalysis/EscapeAnalysis.jl @@ -671,7 +671,7 @@ end @test has_all_escape(result.state[Argument(3)]) # b end let result = @eval EATModule() begin - const Rx = SafeRef{Base.RefValue{String}}() + const Rx = SafeRef(Ref("")) $code_escapes((Base.RefValue{String},)) do s Rx[] = s Core.sizeof(Rx[])