The compiler allows local variables with type names:
Str str := "j" // compiles, valid
str := "j" // compiles, valid
Str := "j" // does not compile, valid
Str Str := "j" // compiles, bug
When defined this way, the variable named Str cannot be used. eg this fails to compile:
The same problem affects parameters.
Promoted to ticket #1297 and assigned to brian
Thanks for reporting
Renamed from Variable identifier bug to Report variable names which conflict with imported types
Ticket resolved in 1.0.56
This situation will now report a compiler error
Login or Signup to reply.