Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `char' | ||
// Line: 12 | ||
// Compiler options: /warn:2 /warnaserror | ||
|
||
using System; | ||
|
||
public class CS0652 { | ||
|
||
public static void Main () | ||
{ | ||
char value = 'a'; | ||
if (value < SByte.MinValue) | ||
return; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `short' | ||
// Line: 12 | ||
// Compiler options: /warn:2 /warnaserror | ||
|
||
using System; | ||
|
||
public class CS0652 { | ||
|
||
public static void Main () | ||
{ | ||
short value = 5; | ||
if (value > char.MaxValue) | ||
return; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `char' | ||
// Line: 12 | ||
// Compiler options: /warn:2 /warnaserror | ||
|
||
using System; | ||
|
||
public class CS0652 { | ||
|
||
public static void Main () | ||
{ | ||
char value = 'a'; | ||
if (value > ulong.MaxValue) | ||
return; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters