mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-05 07:45:59 +02:00
Fixed some generic param cases with generic methods in generic variants
This commit is contained in:
parent
4f3c28ef2f
commit
06a1ea841f
5 changed files with 74 additions and 21 deletions
|
@ -17,6 +17,24 @@ namespace IDETest
|
|||
}
|
||||
}
|
||||
|
||||
class ClassT<T>
|
||||
{
|
||||
public void Test<T2>(T t, T2 t2)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Test<T2>(T t, T2 t2) //FAIL
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static void Boing<TA, TB, TC>()
|
||||
{
|
||||
ClassT<TC>.Test<TB>(default, default); //FAIL 'IDETest.Methods.ClassT<TC>.Test<TB>(TC t, TB t2)' is a candidate
|
||||
}
|
||||
|
||||
public static void MethodA(ClassA zong, int arg)
|
||||
{
|
||||
|
||||
|
|
|
@ -2444,7 +2444,16 @@ namespace IDE
|
|||
{
|
||||
bool foundErrorText = false;
|
||||
if (var error = FindError(lineIdx))
|
||||
foundErrorText = error.mError.Contains(wantsError);
|
||||
{
|
||||
if (error.mError.Contains(wantsError))
|
||||
foundErrorText = true;
|
||||
if (error.mMoreInfo != null)
|
||||
{
|
||||
for (var moreInfo in error.mMoreInfo)
|
||||
if (moreInfo.mError.Contains(wantsError))
|
||||
foundErrorText = true;
|
||||
}
|
||||
}
|
||||
if (!foundErrorText)
|
||||
{
|
||||
mScriptManager.Fail("Error at line {0} in {1} did not contain error text '{2}'\n\t", lineIdx + 1, textPanel.mFilePath, wantsError);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue