Files
codeql/csharp/ql/test/library-tests/conversion/nullable/Nullable.cs
2018-08-02 17:53:23 +01:00

28 lines
387 B
C#

using System;
class C
{
sbyte x1;
sbyte? x2;
Nullable<int> x3;
Nullable<char> x4;
// Verify conversions
void M()
{
x2 = x1;
x3 = x4;
}
// Cause the following types to exist in the database:
byte? x5;
short? x6;
ushort? x7;
uint? x8;
ulong? x9;
decimal? x10;
double? x11;
long? x12;
float? x13;
}