6db692b74b
Former-commit-id: 46737382176d7b811604042c613d5df6eef74f33
24 lines
288 B
C#
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;
|
|
}
|
|
} |