linux-packaging-mono/mcs/tests/gtest-exmethod-29.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

37 lines
502 B
C#

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