Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-297464: Warn me if open types are provided to certain methods that expect closed types

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Apr 25, 2012 1:29:25 AM
Updated Apr 26, 2012 3:28:13 AM
Priority Normal
Type Feature
Fix versions No Fix versions
State Submitted
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
using System;
using System.Collections.Generic;

class A
{
    static void Main()
    {
        var x = Array.CreateInstance(typeof (List<>), 1);
        var y = Delegate.CreateDelegate(typeof (Action<>), typeof(Console), "WriteLine");
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles