Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Assert failed "mCompiler->mCompileState != BfCompiler::CompileState_Unreified"

Open disarray2077 opened this issue 4 years ago • 0 comments

To reproduce this assert failure, create a project of any type and then create a library containing the following two files (the file names doesn't matter), if you don't add the library as a dependency in any project, the assert failure will happen while building the workspace.

using System.Collections;

namespace System
{
	extension Type
	{
		public static Dictionary<int32, String> cache ~ MixinCrash!(_);
	}
}
using System;
using System.Collections;

static
{
	public enum EnumTest
	{
		A,
		B,
		C
	}
}

static
{
	public static mixin MixinCrash<K, V>(Dictionary<K, V> value, EnumTest test = EnumTest.A)
		where K : var, IHashable
		where V : var
	{
		if (test.HasFlag(.B))
		{

		}		
	}
}

Tested with: c105656

disarray2077 avatar Jul 07 '21 19:07 disarray2077