This file contains hidden or 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
using System; | |
namespace ReSharperBugs | |
{ | |
internal class Program | |
{ | |
private static void Main() | |
{ | |
var sideEffectOccurred = false; |
This file contains hidden or 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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public static class C { | |
public static void M(object[] items) { | |
var cancelableItems = items.Cast<dynamic>() | |
.Where(d => d.CanCancel()) | |
.ToArray(); |
This file contains hidden or 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
using System; | |
public class C { | |
public void M() { | |
dynamic n; | |
dynamic c = ""; | |
// | |
// Roslyn marks use of 'n' in 'n > 0' as possibly unassigned; | |
// compiles fine with csc.exe in VS2013. |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Dynamic; | |
using System.Linq; | |
using System.Xml; | |
namespace DynamicDescriptor | |
{ |
This file contains hidden or 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
using System; | |
namespace Evil | |
{ | |
internal static class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
Evil x; | |
MoreEvil y; |