Wiki
Show
Ignore:
Timestamp:
03/08/10 06:19:46 (2 years ago)
Author:
Chuck.Esterbrook
Message:

Code cleanup. In CobraType?.memberForName, assert that the type .didBindInh and .didBindInt. Also, create all nilable types through .typeProvider.nilableType(t) and cache.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/BinaryOpExpr.cobra

    r2297 r2304  
    962962        base._bindImp 
    963963        if not _type inherits NilableType 
    964             _type = NilableType(_type).bindAll to NilableType  # CC: axe cast when 'as this' is supported 
     964            _type = .typeProvider.nilableType(_type to !) 
    965965        # warn about redundancy 
    966966        if not .left.hasError and not .right.hasError