This commit is contained in:
Kirill Osenkov 2020-12-07 14:47:38 -08:00 committed by Ben Adams
parent 84d3257a8f
commit a5ae4e6391

View File

@ -0,0 +1,29 @@
using System;
using System.Diagnostics;
using Xunit;
namespace Ben.Demystifier.Test
{
public class TypeNameTests
{
[Fact]
public void NestedGenericTypes()
{
try
{
Throw(new Generic<(int, string)>.Nested());
}
catch (Exception ex)
{
var text = ex.ToStringDemystified();
}
}
public void Throw(Generic<(int a, string b)>.Nested nested)
{
throw null;
}
}
public class Generic<T> { public struct Nested { } }
}