#1066 Double ?? are allowed when defining type which should not

jessevdam Wed 7 Apr 2010

The following statement is allowed which should not

Int?? test2

If we have

A:B?? 

then this is currently interpreted as

[A:B?]

due to this bug

This could also be interpreted as

[A:B?]?

but I do not know what is should do, following the bnf grammer is should do this.

Following the bnf grammer then will

A:B:C???

interpreted as

[A:[B:C?]?]?

current implementation will do

[A:[B:C?]?]

brian Sat 10 Apr 2010

Promoted to ticket #1066 and assigned to brian

brian Thu 6 May 2010

Ticket resolved in 1.0.53

Yeah that problem slipped thru the way the parser code was organized for parsing things like Foo?[]?, but I added an explicit check to disallow that condition.

Login or Signup to reply.