Wiki

Changeset 2419

Show
Ignore:
Timestamp:
08/15/10 20:24:54 (18 months ago)
Author:
Chuck.Esterbrook
Message:

Fixed: Some invariants cause an internal error.
ticket:248
reported-by:nevdelap

Location:
cobra/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Developer/IntermediateReleaseNotes.text

    r2407 r2419  
    476476 
    477477* Fixed: File and line number are duplicated in some compiler error messages.  ticket:212 
     478 
     479* Fixed: Some invariants cause an internal error.  ticket:248 
  • cobra/trunk/Source/Boxes.cobra

    r2384 r2419  
    727727                .compiler.recordError(ne) 
    728728        for i in _invariants.count 
    729             invari = _invariants[i] 
    730             invari.bindImp 
     729            invari = _invariants[i].bindImp 
    731730            if invari.type is not .compiler.boolType 
    732731                _invariants[i] = TruthExpr(invari).bindAll to Expr 
  • cobra/trunk/Tests/340-contracts/900-invariant.cobra

    r2372 r2419  
    55        .name.length 
    66        0 <= .x < 100 
     7        _b  # previous compiler bug 
    78     
    89    var _x as int 
     
    1920    def violateX 
    2021        _x = 0 
     22 
     23    def _b as bool 
     24        return true 
    2125 
    2226