Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-05

Code tools error

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

The lazarus codetools choke on this:

   {$SCOPEDENUMS ON}
   Tsensitivity = (normal,personal,private,confidential);
msgraph.pas(232,35) Error: identifier expected, but private found

Compiler accepts it.

Reported as issue #30172 in mantis.

Michael.

Reply by email

Ondrej Pokorny
to Ondrej Pokorny
Ondrej Pokorny wrote 7 lines
On 23.05.2016 9:14, Michael Van Canneyt wrote: > {$SCOPEDENUMS ON} > Tsensitivity = (normal,personal,private,confidential); It works for me (Laz 1.7 trunk). (I added SCOPEDENUMS CodeTools support to 1.7 some time ago.)

Sorry, I haven't checked the full mantis issue but only your email. Yes, it happens in an external unit.

Quick fix until it gets fixed (if you haven't figured it yourself):
   {$SCOPEDENUMS ON}
   Tsensitivity = (normal,personal,&private,confidential);

Ondrej

Reply by email