Skip to content

Commit 4af7bb8

Browse files
refactor: minor performance improvement to operation
1 parent 4267c02 commit 4af7bb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ end
375375

376376
# We're returning a function pointer
377377
@inline function TermInterface.operation(x::BSImpl.Type)
378+
@nospecialize x
378379
@match x begin
379380
BSImpl.Const(_) => throw(ArgumentError("`Const` does not have an operation."))
380381
BSImpl.Sym(_) => throw(ArgumentError("`Sym` does not have an operation."))

0 commit comments

Comments
 (0)