Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Comptime emit view's combobox doesn't show up for generic methods

Open disarray2077 opened this issue 1 year ago • 0 comments

It would be very helpful if the ComboBox in the emit view also appeared for generic methods.

image

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

disarray2077 avatar May 13 '24 20:05 disarray2077