Beef
Beef copied to clipboard
Comptime emit view's combobox doesn't show up for generic methods
It would be very helpful if the ComboBox in the emit view also appeared for generic methods.
Code:
using System;
namespace simple_test;
class Program
{
public static class Test<T>
{
public static void CallTest()
{
[Comptime]
static void Test()
{
Compiler.MixinRoot(scope $"Console.WriteLine(\"{typeof(T).ToString(.. scope .())}\");");
}
Console.WriteLine("CallTest");
Test();
}
}
public static void CallTest<T>()
{
[Comptime]
static void Test()
{
Compiler.MixinRoot(scope $"Console.WriteLine(\"{typeof(T).ToString(.. scope .())}\");");
}
Console.WriteLine("CallTest");
Test();
}
public static void Main()
{
CallTest<Program>();
CallTest<String>();
Test<Program>.CallTest();
Test<String>.CallTest();
Console.Read();
}
}
Tested with: https://github.com/beefytech/Beef/commit/aa4f9f7dfa8f2ad81a6807b87192516d0ce72a1a