Beef icon indicating copy to clipboard operation
Beef copied to clipboard

IDE undergoes Fatal Error while building pattern matching sample

Open gopakumar-gg opened this issue 1 month ago • 0 comments

IDE encounters a fatal error and terminates while building the below code (taken from Beef Documentation page 'Pattern Matching'.

using System;

namespace BeefTest;

class Program
{
	public static void Main()
	{
		let tup = (1.2, "Abc");

		// This performs one equality check and one member capture
		if (tup case (1.2, let str))
		{
		}
	}
}

FATAL ERROR Failure during codegen of ?Main@Program@BeefTest@bf@@SAXXZ in BeefTest_Program: Assert 'found' failed on line 3648 MCBlock: caseDone:4

gopakumar-gg avatar Oct 27 '25 06:10 gopakumar-gg