Wiki
Show
Ignore:
Timestamp:
03/14/10 06:45:43 (2 years ago)
Author:
Chuck.Esterbrook
Message:

Arrays and lists can now be compared with == and <>.

Files:
1 modified

Legend:

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

    r2304 r2316  
    185185        if clrType.isArray 
    186186            # assert clrType.name.endsWith(r'[]') # could be [,] so TODO: handle multidim arrays 
    187             return ArrayType(_realTypeWithCache(clrType.getElementType to !)) 
     187            return .typeProvider.arrayType(_realTypeWithCache(clrType.getElementType to !)) 
    188188        else if clrType.isNested and not clrType.isGenericParameter 
    189189            declaringType = _realTypeWithCache(clrType.declaringType to !) 
     
    462462 
    463463 
    464 class ArrayTypeIdentifier 
    465     inherits WrappedTypeIdentifier 
     464class ArrayTypeIdentifier inherits WrappedTypeIdentifier 
    466465 
    467466    cue init(token as IToken, typeId as AbstractTypeIdentifier) 
     
    472471 
    473472    def _resolveType as IType is override 
    474         t = ArrayType(_typeId.realType) 
    475         t.bindInh 
    476         t.bindInt 
    477         return t 
     473        return .typeProvider.arrayType(_typeId.realType) 
    478474 
    479475