Skip to content

Commit

Permalink
remove emitAsConstant check (#9777) (#9780)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimprice authored Nov 11, 2023
1 parent 9a745fc commit c7fc531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxtcompiler/emitter/snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ namespace ts.pxtc.service {
}
const type = checker?.getTypeAtLocation(param);
const typeSymbol = getPxtSymbolFromTsSymbol(type?.symbol, apis, checker);
if ((typeSymbol?.attributes.fixedInstances || typeSymbol?.attributes.emitAsConstant) && python) {
if ((typeSymbol?.attributes.fixedInstances) && python) {
return pxt.Util.snakify(paramDefl);
}
if (python) {
Expand Down

0 comments on commit c7fc531

Please sign in to comment.