Skip to content

Commit

Permalink
Fix main not defined error
Browse files Browse the repository at this point in the history
  • Loading branch information
garritfra committed Dec 10, 2024
1 parent b9f474e commit 2b843c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/sandbox.sb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct Rectangle {
height: int
}

fn test_nested_field_access() {
fn main() {
let rect = new Rectangle {
origin: new Point {
x: 10
Expand All @@ -18,7 +18,7 @@ fn test_nested_field_access() {
width: 100
height: 50
}
assert(rect.origin.x == 10)
rect.origin.x == 10
rect.origin.x += 5
assert(rect.origin.x == 15)
}
rect.origin.x == 15
}

0 comments on commit 2b843c9

Please sign in to comment.