File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 467
467
function settrans!! (vi:: ThreadSafeVarInfo{<:SimpleVarInfo} , trans)
468
468
return Accessors. @set vi. varinfo = settrans!! (vi. varinfo, trans)
469
469
end
470
- function settrans!! (:: SimpleOrThreadSafeSimple , trans:: Bool , vn:: VarName )
471
- @info " Attempting to call `settrans!!` on a `SimpleVarInfo` for a specific variable `$vn `; this will be ignored"
470
+ function settrans!! (vi:: SimpleOrThreadSafeSimple , trans:: Bool , :: VarName )
471
+ # We keep this method around just to obey the AbstractVarInfo interface; however,
472
+ # this is only a valid operation if it would be a no-op.
473
+ if trans != istrans (vi)
474
+ error (
475
+ " Individual variables in SimpleVarInfo cannot have different `settrans` statuses." ,
476
+ )
477
+ end
472
478
end
473
479
474
480
istrans (vi:: SimpleVarInfo ) = ! (vi. transformation isa NoTransformation)
You can’t perform that action at this time.
0 commit comments