From cd3eb4310298c33d1d3bd3c80474d47852d748bc Mon Sep 17 00:00:00 2001 From: Zachary P Christensen Date: Sun, 10 Apr 2022 15:37:20 -0400 Subject: [PATCH] `@nospecialize` for `identity` --- base/operators.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/operators.jl b/base/operators.jl index c24a82d4fa4a5..154550726de6d 100644 --- a/base/operators.jl +++ b/base/operators.jl @@ -523,7 +523,7 @@ julia> identity("Well, what did you expect?") "Well, what did you expect?" ``` """ -identity(x) = x +identity(@nospecialize x) = x +(x::Number) = x *(x::Number) = x