Beef
Beef copied to clipboard
Beef Programming Language
This code crashes the IDE : ```beef using System; namespace Test; public struct GenericAttribute : Attribute where N : const int { public this(params int[N] test) {} } [Generic(0)] //...
This code causes a crash: ```bf using System; namespace Testing { struct FirstAttribute : Attribute, IOnTypeDone { [Comptime] public void OnTypeDone(Type type, Self* prev) { const let validTypes = Type[](typeof(bool));...
[dump.zip](https://github.com/beefytech/Beef/files/9667062/dump.zip) Project for reproduction: https://drive.google.com/file/d/1j3fYFXUaLTtKnCB9jsgQTXXojC14LsgW/view?usp=sharing I'm not quite sure what's causing the crash, but I'm fairly certain it has something to do with the `EditVector`-functions in `ImGuiExtension.bf`
[CrashDumps.zip](https://github.com/beefytech/Beef/files/9639125/CrashDumps.zip) Crash dumps attached (Edit) - I've updated the zip with 2 more crash dumps.
The code below fails: ``` struct MyStruct1 { public uint32[3] shaderIndices; } struct MyStruct2 { public MyStruct1* shaderGroupDescs; public uint32 count; } public void Check(){ MyStruct2 s2 = .(); for(int...
E.g.: ``` uint32 x = (1uL
This example fails to compile: ``` using System; [CRepr] struct IUnknown { public new const Guid IID = .(0x00000000, 0x0000, 0x0000, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); public...
 Example screenshot above. Restarting the IDE or sometimes doing other actions and trying again restores the working dialog.
This should probably be disallowed: Example: ``` interface IDevice { abstract void Test(); } class Device : IDevice { } class Program { public static void CreateDevice(out IDevice device) {...
This example below triggers the crash: ``` using System; using System.Collections; using System.Diagnostics; namespace BeefTest2; public static { public const int NumItems = 3; } class MyData { } public...