Wow, this parses:

Wow, this parses:

property DepartmentName: string index 0 string read GetCustomDataX;

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.

Comments

  1. Looks like it ignores quite a few keywords in there ;)
    This compiles (I did not look for every possible keyword, so I guess there are a couple more):

    property DepartmentName: string index 0 program library uses unit interface string class read GetCustomDataX;

    ReplyDelete
  2. CONTEST is open:
    My entry:
    property Foo: string index 0 unit if library uses unit do not inline file else raise object if is nil read GetFoo;

    ReplyDelete
  3. Oh no, please don't fix this bug, it is great for code obfuscation ;-)

    ReplyDelete
  4. Can you mix types in the same declaration? I.e string and integer?

    ReplyDelete

Post a Comment