Beef
Beef copied to clipboard
[Bug] Crash when compiling non-comptime in comptime
The following code crashes the IDE when compiling a Debug build.
Fails correctly in Release.
Tested in latest nightly.
using System;
namespace Clean;
struct Content<TSize> where TSize : const int
{
public this()
{
}
}
public struct Content
{
[Comptime(ConstEval=true)]
public static var Do(StringView str)
{
uint8[str.Length] data = ?;
return Content<const str.Length>();
}
}
class Program
{
public static int Main()
{
const var test = Content.Do("abc");
return 0;
}
}