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:
parent
b283cb0aab
commit
e35318c688
4 changed files with 165 additions and 56 deletions
|
@ -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>'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue