linux-packaging-mono/mcs/tests/test-ref-10.cs
Xamarin Public Jenkins (auto-signing) 6db692b74b Imported Upstream version 5.10.0.78
Former-commit-id: 46737382176d7b811604042c613d5df6eef74f33
2018-01-31 19:21:06 +00:00

24 lines
288 B
C#

// 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;
}
}