Skip to content

IDE undergoes Fatal Error while building pattern matching sample #2351

@gopakumar-gg

Description

@gopakumar-gg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions