Beef icon indicating copy to clipboard operation
Beef copied to clipboard

IntrinsicAttribute cause IDE crashing...

Open maihd opened this issue 2 years ago • 0 comments

The below code will crash when press F5:

using System;

public struct Vector2
{
	public float x;
	public float y;

	public this()
	{
		this = default;
	}

	public this(float x, float y)
	{
		this.x = x;
		this.y = y;
	}

	[Intrinsic("add")]
	public static extern Self operator+(Self lhs, Self rhs);

	[Intrinsic("sub")]
	public static extern Self operator-(Self lhs, Self rhs);

	[Intrinsic("mul")]
	public static extern Self operator*(Self lhs, Self rhs);

	[Intrinsic("div")]
	public static extern Self operator/(Self lhs, Self rhs);
}

Meta: Beef 0.43.4, Visual Studio 2017 installed. Sample code: https://github.com/maihd/FunWithBeef/tree/main/VectorMath/src/Vector2.bf Crash dump file: BeefIDE_20230101_091026.zip

maihd avatar Jan 01 '23 02:01 maihd