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

Compiler.Mixin inside Comptime method crashes the compiler #1975

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

Compiler.Mixin inside Comptime method crashes the compiler #1975

disarray2077 opened this issue May 13, 2024 · 0 comments

Comments

@disarray2077
Copy link
Contributor

disarray2077 commented May 13, 2024

The code below crashes the compiler when it's compiling.
This seems like something that was working before. I hope this isn't caused by something else in my project. 🙏

class Program
{
	[Comptime]
	public static void Test<T>()
	{
		if (typeof(T).IsGenericParam)
			return;

		Compiler.Mixin("// Beef!");
	}

	public static void Main()
	{
		Test<Program>();

		Console.Read();
	}
}

Crash screenshot:
image

Tested with: aa4f9f7

@disarray2077 disarray2077 changed the title Compiler.Mixin inside Compiler.Mixin crashes the compiler Compiler.Mixin inside Comptime method crashes the compiler May 13, 2024
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