A bug caused by side-effects in assertions fixed. A new test (checks the code for suspicious asserts) added.

This commit is contained in:
Andrey Breslav
2011-01-03 23:59:28 +03:00
parent 64c76ab226
commit 27c4494d69
11 changed files with 244 additions and 141 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class Example(a : Foo, i : Int) : Bar(i), Some {
var y : Double = 7.0d
var z : String = "SDfsdf" {
get() = $z + "sdfsd"
private set(s : String) { $z = s } // TODO: allow to omit the type here?
private set(s : String) { $z = s }
}
}
*/
+1 -1
View File
@@ -139,7 +139,7 @@ equalityOperation
assignmentOperator
: "="
: "+=" : "-=" : "*=" : "/=" : "%="// TODO: |=, %= and <<= make more sense than |, % or << alone, and so for others
: "+=" : "-=" : "*=" : "/=" : "%="
;
unOpExpression
+1 -1
View File
@@ -1,5 +1,5 @@
matchEntry
: attributes "case" pattern ("if" "(" expression ")")? "=>" expression SEMI? // TODO: Consider other options than "=>"
: attributes "case" pattern ("if" "(" expression ")")? "=>" expression SEMI?
;
pattern
-1
View File
@@ -24,7 +24,6 @@ memberModifier
: "override"
: "virtual"
: "abstract"
: // TODO: inline
;
accessModifier