mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
13 lines
307 B
C#
13 lines
307 B
C#
public class Nullable
|
|
{
|
|
public double? useNullable(int? x)
|
|
{
|
|
if (x == null)
|
|
return null; // lifted null
|
|
if (x == 3) // lifted binary operator
|
|
x++; // lifted unary mutator
|
|
x = -x; // lifted unary operator
|
|
return x; // lifted conversion
|
|
}
|
|
}
|