A bug caused by side-effects in assertions fixed. A new test (checks the code for suspicious asserts) added.
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
@@ -139,7 +139,7 @@ equalityOperation
|
||||
|
||||
assignmentOperator
|
||||
: "="
|
||||
: "+=" : "-=" : "*=" : "/=" : "%="// TODO: |=, %= and <<= make more sense than |, % or << alone, and so for others
|
||||
: "+=" : "-=" : "*=" : "/=" : "%="
|
||||
;
|
||||
|
||||
unOpExpression
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -24,7 +24,6 @@ memberModifier
|
||||
: "override"
|
||||
: "virtual"
|
||||
: "abstract"
|
||||
: // TODO: inline
|
||||
;
|
||||
|
||||
accessModifier
|
||||
|
||||
Reference in New Issue
Block a user