-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a failing test for the let + fields bug
- Loading branch information
Tobias Wrigstad (Spotify)
committed
Jul 18, 2014
1 parent
ca56077
commit 8f23be9
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class Main | ||
value : int | ||
def main() : void { | ||
this.value = 1024; | ||
let x = this.value in { | ||
x = x + 1; | ||
if x == 1024 then | ||
print "Failue when reading x -- expected 1024, got something else" | ||
else | ||
print "Test 1 OK"; | ||
if x == this.value then | ||
print "Failue when comparing x and this.value -- they are the same but should not be" | ||
else | ||
print "Test 2 OK"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Test 1 OK | ||
Test 2 OK |