Inspection Details

ImplicitlyTypedConst


Try it in the latest pre-release build!
Summary
Warns about constants that don't have an explicitly defined type.
Reasoning
All constants have a declared type, whether a type is specified or not. The implicit type is determined by the compiler based on the value, which is not always the expected type.
Available quickfixes:
The following code example(s) would trigger this inspection:
MyModule

Const myInteger = 12345

The following code example(s) would not trigger this inspection:
MyModule

Const myInteger As Integer = 12345

MyModule

Const myInteger% = 12345


Back to List