Merge pull request #69191 from raulsntos/dotnet/no-throw

Fix `VariantUtils.UnsupportedType` method throwing
This commit is contained in:
Ignacio Roldán Etcheverry 2022-11-26 04:38:11 +01:00 committed by GitHub
commit 68e3f49157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ namespace Godot.NativeInterop;
public partial class VariantUtils
{
private static Exception UnsupportedType<T>() => throw new InvalidOperationException(
private static Exception UnsupportedType<T>() => new InvalidOperationException(
$"The type is not supported for conversion to/from Variant: '{typeof(T).FullName}'");
internal static class GenericConversion<T>