Code completion bug

francoisg

Active Member
Licensed User
Longtime User
Hi,
I am using version 1.8 of B4A.

when I declare a function like: mySub (x, y As Int), code completion shows "mySub(x as String, y as Int)" where it should show "mySub(x As Int, y as Int)

Changing the declaration to "mySub(x as Int, y as Int)" shows the expected result ...

Not a big problem but it has caused some issues because I passed parameters as strings (forgetting what the actual parameter type should be and relying on code completion) where an int is expected :BangHead: ...
 

francoisg

Active Member
Licensed User
Longtime User
I understand but should the compiler then not complain if you use the shorthand syntax as it clearly states what the user wants but the result is something different?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…