Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Assert failed "(int)mOutFileNames.size() >= mExtensionCount"

Open disarray2077 opened this issue 4 years ago • 0 comments

The assert failure mentioned in the issue title can be easily reproduced if you try to compile a Test project with BeefIDE_d that contains the following two files (their names doesn't matter):

using System;
using System.Collections;

namespace BeefBugRepros
{
	static
	{
		[Test]
		public static void TestBug()
		{
			Dictionary<int, int> a = scope .();
			MixinCrash!(a);
		}
	}
}
using System;

static
{
	public static mixin MixinCrash<T>(T value)
	{

	}

	public static mixin MixinCrash<K, V>(Dictionary<K, V> value)
		where K : var, IHashable
		where V : var
	{

	}
}

Tested with: https://github.com/beefytech/Beef/commit/c10565678ebedf7bfc237e25ae9f661ed98a03c2

disarray2077 avatar Jul 07 '21 18:07 disarray2077