1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed unspecialized method variation calculated return value

This commit is contained in:
Brian Fiete 2021-01-20 06:42:44 -08:00
parent b283cb0aab
commit e35318c688
4 changed files with 165 additions and 56 deletions

View file

@ -1,6 +1,7 @@
#pragma warning disable 168
using System;
using System.Collections;
namespace System
{
@ -54,5 +55,15 @@ namespace IDETest
function void() f = => MethodA<T2>; //FAIL Method 'IDETest.Generics.ClassA<T1, T2>.MethodA<T2>(int a)' does not match function 'function void()'
}
}
static void Method5<A, B>() where A : IEnumerable<B>
{
}
static void Method6<C, D, E, F>()
{
Method5<E, F>(); //FAIL Generic argument 'A', declared to be 'E' for 'IDETest.Generics.Method5<E, F>()', must implement 'System.Collections.IEnumerable<F>'
}
}
}