DefType Statement

Warns about Def[Type] statements.

Reasoning

These declarative statements make the first letter of identifiers determine the data type.

Default severity

Suggestion

Inspection type

LanguageOpportunities

Examples

This example should trigger a result

MyModule (StandardModule)
DefBool B DefDbl D Public Sub DoSomething() Dim bar ' implicit Boolean ' ... End Sub

Rubberduck.CodeAnalysis.Inspections.Concrete.DefTypeStatementInspection.cs (Prerelease-v2.5.9.6289)