Beef
Beef copied to clipboard
Beef Programming Language
Methods in static block marked with SkipCall attribute generate `Illegal SkipCall invocation` error. Code to reproduce: ```cs public static class Foo { [SkipCall] public static void Assert(bool condition) { }...
The code below is causing a stack overflow crash, it appears that the delegate allocated in the loop condition is being unnecessarily kept on the stack during all loop interactions....
In the code below, there is an error "Abstract base method cannot be invoked" when trying to access the base property F1 in the derived class C3. However, this error...
I want to import a DLL (created by another beef project) in the beef project to implement the functionality like game mods, How do I do this?Thanks!
Debugger doesn't show variable contents if the allocated type is generic with `const` constrain Debugger watch window:  Code to reproduce: ```cs class Normal { public String value = "normal";...
Code: ```beef using System; namespace Test; class Foo { [AllowAppend] public this() { int* _ = append .[1]*; } } static class Program { public static void Main(String[] args) {...
The assertion in the code below fails when: - `Foo` has the `uint8[64]` padding. - `Foo` has the `[CRepr]` attribute. - `Foo` is being passed by value to Test. -...
The code below doesn't compile, but it compiles fine if you swap the `Test` method overloads. ```cs static String[?] ars = .("1", "2"); public static void Test(this TEnum items, TPredicate...
Example code: ```cs public static U TryCast(T val) where T : class where U : class { if (let casted = val as U) return casted; return null; // WARNING:...
This block of code reproduces the issue with an extension of Dictionary: ``` using System.Collections; class MyBuffer{ } struct MyBufferState{ } namespace System.Collections{ extension Dictionary{ public typealias Iterator = TValue*;...