linux-packaging-mono/mcs/tests/gtest-exmethod-29.cs

37 lines
502 B
C#
Raw Normal View History

using System;
public class My
{
bool ContentTransferEncoding {
set { }
}
}
public static class Test
{
public static int Main ()
{
var test = new My ();
int result = test.ContentTransferEncoding ();
if (result != 1)
return 1;
result = test.ContentTransferEncoding<int> ();
if (result != 2)
return 2;
return 0;
}
public static int ContentTransferEncoding<T> (this My email)
{
return 2;
}
public static int ContentTransferEncoding (this My email)
{
return 1;
}
}