Inspection Details

ObsoleteTypeHint


Summary
Flags declarations where a type hint is used in place of an 'As' clause.
Reasoning
Type hints were made obsolete when declaration syntax introduced the 'As' keyword. Prefer explicit type names over type hint symbols.
The following code example(s) would trigger this inspection:

Public Sub DoSomething()
    Dim foo$
    foo = "some string"
End Sub

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

Public Sub DoSomething()
    Dim foo As String
    foo = "some string"
End Sub


Back to List