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

RSRP-128104: error CS0853: An expression tree may not contain a named argument specification

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Oct 31, 2009 12:21:21 AM
Updated Nov 8, 2011 1:07:05 PM
Priority Normal
Type Feature
Fix versions No Fix versions
State Submitted
Assignee Ilya Ryzhenkov (orangy)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
using System;
using System.Linq.Expressions;


class A
{
    public static void Foo(int y, int x = 1)
    {
        Console.WriteLine(x);
    }

    private static void Main()
    {
        Expression<Action<int>> a = x => Foo(x, x: 1); // error CS0853: An expression tree may not contain a named argument specification
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>