Skip to content

Commit

Permalink
Merge pull request #41998 from dsplayerX/fix_41975
Browse files Browse the repository at this point in the history
Fix type not set for `isTransactionalCheck` in TransactionDesugar
  • Loading branch information
chiranSachintha authored Jan 18, 2024
2 parents 7398ff0 + b82855a commit 4685f5b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ void createRollbackIfFailed(Location pos, BLangBlockStmt onFailBodyBlock,

// transactional
BLangTransactionalExpr isTransactionalCheck = TreeBuilder.createTransactionalExpressionNode();
isTransactionalCheck.setBType(symTable.booleanType);
isTransactionalCheck.pos = pos;

// if(($trxError$ is error) && !($trxError$ is TransactionError) && transactional)
Expand Down

0 comments on commit 4685f5b

Please sign in to comment.