You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
[.NET] Disallow [ExportToolButton] on members thay may store the Callable
Ensures the user doesn't store the Callable so the .NET assembly can be reloaded.
This commit is contained in:
@@ -101,4 +101,13 @@ public class ExportDiagnosticsTests
|
||||
new string[] { "ExportDiagnostics_GD0110_ScriptProperties.generated.cs" }
|
||||
);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async void ExportToolButtonStoringCallable()
|
||||
{
|
||||
await CSharpSourceGeneratorVerifier<ScriptPropertiesGenerator>.Verify(
|
||||
new string[] { "ExportDiagnostics_GD0111.cs" },
|
||||
new string[] { "ExportDiagnostics_GD0111_ScriptProperties.generated.cs" }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user