Skip to content

Commit

Permalink
example updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dhyey-shah committed Feb 5, 2021
1 parent d76d3e2 commit 9ffb0ae
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 32 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ run {
// args = ["-r", "-cp=.\\examples\\", "closure"]

// Compile
args = ["-c",".\\examples\\closure.cafe"]
// args = ["-c",".\\examples\\Objects.cafe"]

// Usage
// args = ["--usage", "-c"]
Expand Down
3 changes: 0 additions & 3 deletions examples/closure.cafe → examples/Objects.cafe
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ var acc = {
withdraw: func(b){
if(this.amount < b){
cmd.println("Insufficient Balance");
cmd.println("Please check");
} else {
cmd.print("Hello");
updateBal(-b);
}
}
};

cmd.println(acc.amount);
acc.init();
acc.checkBalance();
acc.deposit(1000);
Expand Down
28 changes: 0 additions & 28 deletions src/test/resources/closure-test/closure.cafe

This file was deleted.

0 comments on commit 9ffb0ae

Please sign in to comment.