Skip to content

Commit

Permalink
Set type boolean for isTransactionalCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
dsplayerX committed Jan 17, 2024
1 parent 7398ff0 commit b82855a
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);

Check warning on line 444 in compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/TransactionDesugar.java

View check run for this annotation

Codecov / codecov/patch

compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/TransactionDesugar.java#L444

Added line #L444 was not covered by tests
isTransactionalCheck.pos = pos;

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

0 comments on commit b82855a

Please sign in to comment.