Wiki
Show
Ignore:
Timestamp:
03/11/10 09:47:16 (2 years ago)
Author:
Chuck.Esterbrook
Message:

Taught the compiler that arrays implement ICloneable, ICollection<of> and IEnumerable<of>. Extensions methods are picked up so someArray.toList now works.

Files:
1 modified

Legend:

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

    r2304 r2310  
    782782            else if not _canContain(.right.type to !, .left.type to !) 
    783783                .recordError('The left expression ([.left.toCobraSource]) cannot be "in" the right-hand expression because the left type is "[.left.type.name]" and the right-hand expression contains type "[.right.type.innerType.name]".') 
     784            else if _right.type inherits ArrayType 
     785                pass 
    784786            else if not _right.type.isDynamic 
    785787                # try to use right.contains(left)