consulo-csharp icon indicating copy to clipboard operation
consulo-csharp copied to clipboard

Support 'System.Linq.Expressions.Expression'

Open Darkwing-Duck opened this issue 10 years ago • 4 comments

Hi. The following code works fine, but Consulo highlights expression as an error!

using System;
using System.Linq.Expressions;

public class TT {
    public static void t() {
        test(() => "test"); // here error
    }

    public static void test(Expression<Func<String>> a) {
    }
}

Darkwing-Duck avatar Sep 21 '15 19:09 Darkwing-Duck

Hi. I will check this issue in October. Sorry

VISTALL avatar Sep 21 '15 21:09 VISTALL

Ok, importantly that it works;)

Darkwing-Duck avatar Sep 22 '15 06:09 Darkwing-Duck

ref https://github.com/consulo/consulo-csharp/issues/307

VISTALL avatar Oct 10 '15 18:10 VISTALL

Note for me

using System;
using System.Linq.Expressions;

public class TT {
    public static void t() {
        test(() => "test"); // here error
    }

    public static void test(Expression<Func<String>> a) {
    }

    public static void test(Func<Object> a) {
    }
}

Will be error - two methods are resolved, but required one. Looks like they have same priority

VISTALL avatar Nov 20 '15 22:11 VISTALL