forked from rubberduck-vba/Rubberduck
-
Notifications
You must be signed in to change notification settings - Fork 12
ObsoleteLetStatementInspection
Mathieu Guindon edited this page Feb 23, 2015
·
2 revisions
Description: Use of obsolete Let statement
Type: CodeInspectionType.LanguageOpportunities
Default severity: CodeInspectionSeverity.Warning
This inspection finds assignments made using the obsolete Let
keyword.
###Example:
Parameter foo
is assigned using the obsolete Let
keyword.
Dim foo As Integer
Let foo = 42
In older version of the language, the Let
keyword was required for value assignments. It can safely be omitted.
###QuickFixes
QuickFix: Remove obsolete statement
Dim foo As Integer
foo = 42
This quickfix simply removes the superfluous Let
keyword.