Wow, this parses in Delphi: `property Foo: string index 0 string read GetFoo;`
Posted by jpluimers on 2017/05/18
Quite a few interesting entries got posted after I published this compiler glitch:
Wow, this parses:
property Foo: string index 0 string read GetFoo;
Note the extra “string”.
Found this in an old piece of code so it must have been uncaught by the compiler for quite a while.
Some:
property DepartmentName: string index 0 program library uses unit interface string class read GetCustomDataX;
property Foo: string index 0 unit if library uses unit do not inline file else raise object if is nil read GetFoo;
–jeroen
ruurd said
wuhahahahaha that’s a good way to stress out the lookahead of the lexer for sure!
sglienke said
No, it does not anymore in 10.2