-
-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Description
Similar to #298 just with another argument, error decompiling case without explicit type cast (event with 0.35.1):
Working properly with pre 0.35.
using DelegateDecompiler;
using System.Linq;
namespace ConsoleApp1;
static class Program
{
static void Main()
{
var q = new Cls[0].AsQueryable();
var a = DecompileExtensions.Decompile(q.Select(x => x.Ext1(0)));
var b = DecompileExtensions.Decompile(q.Select(x => x.Ext2(0)));
}
[Computed]
public static int Ext1<T>(this T value, int i) where T : Intf => ((Intf)value).Value(i);
[Computed]
public static int Ext2<T>(this T value, int i) where T : Intf => value.Value(i);
}
public interface Intf
{
public int Value(int i) => i;
}
public class Cls : Intf
{
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels