Skip to content

Commit 1fe7cfa

Browse files
authored
add @nospecialize for identity (#44929)
1 parent dfe0e34 commit 1fe7cfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ julia> identity("Well, what did you expect?")
510510
"Well, what did you expect?"
511511
```
512512
"""
513-
identity(x) = x
513+
identity(@nospecialize x) = x
514514

515515
+(x::Number) = x
516516
*(x::Number) = x

0 commit comments

Comments
 (0)