Query module SelfAssignment

name
Self-assignment
description
Assigning a variable to itself is useless and very likely indicates an error in the code.
kind
problem
problem.severity
error
precision
high
id
cs/self-assignment
tags
reliability correctness logic

Imports

StructuralComparison

Provides functionality for performing structural comparison of expressions and statements.

csharp

The default C# QL library.

Predicates

Classes