From b4743dd0634a28ceb770d8b76bbbe1fe09379b20 Mon Sep 17 00:00:00 2001 From: Liozou Date: Fri, 1 May 2020 22:19:56 +0200 Subject: [PATCH] minor: short form function for inv Co-authored-by: Mustafa M --- base/rational.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/rational.jl b/base/rational.jl index e85b0fc079c1f1..29d39bdf7d8da2 100644 --- a/base/rational.jl +++ b/base/rational.jl @@ -319,7 +319,7 @@ function *(y::Integer, x::Rational) end /(x::Rational, y::Union{Rational, Integer, Complex{<:Union{Integer,Rational}}}) = x//y /(x::Union{Integer, Complex{<:Union{Integer,Rational}}}, y::Rational) = x//y -function inv(x::Rational{T}) where T +inv(x::Rational{T}) where {T} = checked_den(x.den, x.num) checked_den(x.den, x.num) end