Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
disarray2077 opened this issue May 13, 2024 · 0 comments
Open

Comments

@disarray2077
Copy link
Contributor

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: aa4f9f7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant