Changeset 1732

Show
Ignore:
Timestamp:
11/04/08 21:33:20 (2 months ago)
Author:
Chuck.Esterbrook
Message:

Fixed: Cannot add a doc string for a sig declaration.

Location:
cobra/trunk
Files:
3 modified

Legend:

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

    r1729 r1732  
    201201 
    202202* Fixed: Invoking _someMethod without parens in an `if` statement or other expression causes a false compilation error. 
     203 
     204* Fixed: Cannot add a doc string for a `sig` declaration. 
  • cobra/trunk/Source/CobraParser.cobra

    r1731 r1732  
    14471447                        attribs = .hasAttribs 
    14481448                        docString = .docString 
     1449                        .dedent 
    14491450 
    14501451                methodSig = MethodSig(token, curContainer to IParentSpace, name, params, returnType, isNames, attribs, docString) 
  • cobra/trunk/Tests/220-delegates-etc/100-delegates/110-declare-sig.cobra

    r1340 r1732  
    77sig BinaryOp(a as int, b as int) as int 
    88 
     9sig TestDocString(i as int) as int 
     10        """ 
     11        Testing doc string for sig declaration. 
     12        """ 
     13 
     14sig TestNoArgsOrReturn 
    915 
    1016class Computer