@@ -65,8 +65,8 @@ Internal function.
6565Turn both `a` and `::constraint` into `a::Annotation{<:constraint}` etc
6666"""
6767function _constrain_and_name (arg:: Expr )
68- Meta. isexpr (arg, :(:: ), 2 ) && return Expr (:(:: ), Symbol (" ann_" , arg. args[1 ]), :(Annotation{<: $ (arg. args[2 ])})) # it is already fine.
69- Meta. isexpr (arg, :(:: ), 1 ) && return Expr (:(:: ), Symbol (" ann_" , gensym ()), :(Annotation{<: $ (arg. args[1 ])})) # add name
68+ Meta. isexpr (arg, :(:: ), 2 ) && return Expr (:(:: ), Symbol (" ann_" , arg. args[1 ]), :($ ( Annotation) {<: $ (arg. args[2 ])})) # it is already fine.
69+ Meta. isexpr (arg, :(:: ), 1 ) && return Expr (:(:: ), Symbol (" ann_" , gensym ()), :($ ( Annotation) {<: $ (arg. args[1 ])})) # add name
7070 # Meta.isexpr(arg, :(...), 1) &&
7171 # return Expr(:(...), _constrain_and_name(arg.args[1], :Annotation))
7272 return error (" malformed arguments: $arg " )
@@ -479,7 +479,7 @@ function scalar_rrule_expr(__source__, f, call, setup_stmts, inputs, input_names
479479
480480 PT = EnzymeRules. primal_type (config, ($ (esc (:RTA ))). parameters[1 ])
481481 ST = EnzymeRules. shadow_type (config, ($ (esc (:RTA ))). parameters[1 ])
482- AugmentedReturnType = :(EnzymeRules. AugmentedReturn{$ PT,$ ST,typeof (cache)})
482+ AugmentedReturnType = :($ ( EnzymeRules. AugmentedReturn) {$ PT, $ ST, typeof (cache)})
483483
484484 genres = if needs_primal (config)
485485 if needs_shadow (config)
0 commit comments