linux-packaging-mono/mcs/tests/test-ref-10.cs

24 lines
288 B
C#
Raw Normal View History

// Compiler options: -langversion:latest
using System;
ref struct ValueStringBuilder
{
public override string ToString ()
{
return "aaa";
}
}
class X
{
public static int Main ()
{
var s = new ValueStringBuilder ();
if (s.ToString () != "aaa")
return 1;
return 0;
}
}