Ticket #144 (new defect)

Opened 1 year ago

Last modified 1 year ago

Parser: Error when let is embedded inside other expression

Reported by: lth Assigned to: jeffdyer
Type: defect Priority: major
Milestone: Component: RefImpl
Version: 4 Keywords:
Cc:

Description

The parens are required around the "let" expression in this function, but should not be:

function stringHash(s: string): uint {
    let h = 0;
    for ( let i=0 ; i < s.length ; i++ )
        h = (h << 4) + (let (c = s.charCodeAt(i)) c*3);
    return h;
}

Attachments

Change History

Changed 1 year ago by lth

  • summary changed from Parse error when let is embedded inside other expression to Parser: Error when let is embedded inside other expression

See also #114.

Note: See TracTickets for help on using tickets.