diff options
author | MichalMoskal <unknown> | 2010-02-18 19:58:38 +0000 |
---|---|---|
committer | MichalMoskal <unknown> | 2010-02-18 19:58:38 +0000 |
commit | 2e03ed114503dfa16547c06766fa683c690f9052 (patch) | |
tree | 7151121512b0e5476caca502bd7e04d0d0701bd9 /Test/test1/Answer | |
parent | 36bda629c0083590c5e4d17f06e769f822617033 (diff) |
Implement if-then-else expression.
Diffstat (limited to 'Test/test1/Answer')
-rw-r--r-- | Test/test1/Answer | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Test/test1/Answer b/Test/test1/Answer index b0f4aac3..10ad5494 100644 --- a/Test/test1/Answer +++ b/Test/test1/Answer @@ -135,3 +135,7 @@ FunBody.bpl(6,45): Error: function body with invalid type: bool (expected: int) FunBody.bpl(8,61): Error: function body with invalid type: int (expected: alpha)
FunBody.bpl(10,58): Error: function body with invalid type: int (expected: alpha)
3 type checking errors detected in FunBody.bpl
+IfThenElse0.bpl(5,7): Error: the first argument to if-then-else should be bool, not int
+IfThenElse0.bpl(6,7): Error: branches of if-then-else have incompatible types bool and int
+IfThenElse0.bpl(7,2): Error: mismatched types in assignment command (cannot assign int to bool)
+3 type checking errors detected in IfThenElse0.bpl
|