Changeset 1744

Show
Ignore:
Timestamp:
11/07/08 20:45:30 (2 months ago)
Author:
Chuck.Esterbrook
Message:

Fixed: The error message for fixed size array syntax (int[10]) is misleading and uninformative.
ticket:27

Location:
cobra/trunk
Files:
1 added
2 modified

Legend:

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

    r1739 r1744  
    212212 
    213213* Fixed: Nilable delegates cannot be called (`foo(arg1, arg2)`). 
     214 
     215* Fixed: The error message for fixed size array syntax (`int[10]`) is misleading and uninformative. ticket:27 
  • cobra/trunk/Source/CobraParser.cobra

    r1736 r1744  
    32463246                if bracket 
    32473247                        if .peek.which=='INTEGER_LIT' 
    3248                                 .throwError('Explicit array sizes are not currently supported.') 
     3248                                .throwError('The size of the array is not part of its type. Specify the size when creating the array such as: [t.name]\[]([.peek.text]).') 
    32493249                        .expect('RBRACKET') 
    32503250                        t = ArrayTypeIdentifier(bracket, t)