a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
19 lines
242 B
C#
19 lines
242 B
C#
class MyString
|
|
{
|
|
public static implicit operator string (MyString s)
|
|
{
|
|
return "ggtt";
|
|
}
|
|
}
|
|
|
|
public class Test
|
|
{
|
|
public static int Main ()
|
|
{
|
|
var v = new [] { new MyString (), "a" };
|
|
if (v [0] != "ggtt")
|
|
return 1;
|
|
return 0;
|
|
}
|
|
}
|