|
337 | 337 | @test (@which (::Base.RefValue{Int}).x = ::Int).name === :setproperty! |
338 | 338 | @test (@which (::Float64)^2).name === :literal_pow |
339 | 339 | @test (@which [::Int]).name === :vect |
| 340 | + @test (@which [undef_var::Int]).name === :vect |
340 | 341 | @test (@which [::Int 2]).name === :hcat |
341 | 342 | @test (@which [::Int; 2]).name === :vcat |
342 | 343 | @test (@which Int[::Int 2]).name === :typed_hcat |
|
345 | 346 | @test (@which Int[::Int 2;3 (::Int)]).name === :typed_hvcat |
346 | 347 | @test (@which (::Vector{Float64})').name === :adjoint |
347 | 348 | @test (@which "$(::Symbol) is a symbol").sig === Tuple{typeof(string), Vararg{Union{Char, String, Symbol}}} |
| 349 | + @test (@which +(some_x::Int, some_y::Float64)).name === :+ |
348 | 350 | @test (@which +(::Any, ::Any, ::Any, ::Any...)).sig === Tuple{typeof(+), Any, Any, Any, Vararg{Any}} |
349 | 351 | @test (@which +(::Any, ::Any, ::Any, ::Vararg{Any})).sig === Tuple{typeof(+), Any, Any, Any, Vararg{Any}} |
350 | 352 | n = length(@code_typed +(::Float64, ::Vararg{Float64})) |
|
358 | 360 | @test (@which +(::T, ::T) where {T<:Number}).sig === Tuple{typeof(+), T, T} where {T<:Number} |
359 | 361 | @test (@which round(::Float64; digits=3)).name === :round |
360 | 362 | @test (@which round(1.2; digits = ::Int)).name === :round |
| 363 | + @test (@which round(1.2; digits::Int)).name === :round |
361 | 364 | @test (@code_typed round(::T; digits = ::T) where {T<:Float64})[2] === Union{} |
362 | 365 | @test (@code_typed round(::T; digits = ::T) where {T<:Int})[2] === Float64 |
363 | 366 | base = 10 |
|
0 commit comments