Beef
Beef copied to clipboard
IntrinsicAttribute cause IDE crashing...
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