Bug? Omitting Array declaration type behaviour is different in Debug and Release modes

agraham

Expert
Licensed User
Longtime User
If you accidentally omit the type in an Array(..) declaration like

Public const ActCode() As Byte = Array(0xc9, 0x44 )

If you compile in Debug mode it accepts it and causes odd runtime behaviour later on . If you compile in Release mode you get an incompatible type error during compilation.
 
Top