Inv(transpose(mat) ) causes warntype

hello, I found the following problem in both 1.0.0 and 1.0.1

mat = reshape(collect(1.0:4.0), 2, 2)

julia> @code_warntype inv(transpose(mat) )      # gives warntype
Body::Any

@code_warntype inv(copy(transpose(mat) ) )    # fine
1 Like

besides, for 1x1 matrix, (in version 1.0.1) the following not only gives a warning but an error:

julia> mat1 = reshape([3.0], 1, 1)
1×1 Array{Float64,2}:
 3.0

julia> inv(transpose(mat1) )
ERROR: MethodError: no method matching ldiv!(::Float64, ::Array{Float64,2})