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

57 lines
679 B
C#

// Compiler options: -langversion:default
using System;
namespace Test2
{
public interface Base
{ }
public partial class Foo : Base
{
public static int f = 10;
}
public partial class Foo : Base
{
public static int f2 = 9;
}
}
namespace Test3
{
public interface Base
{ }
public partial struct Foo : Base
{
public static int f = 10;
}
public partial struct Foo : Base
{
public static int f2 = 9;
}
}
class X
{
public static int Main ()
{
if (Test2.Foo.f != 10)
return 1;
if (Test2.Foo.f2 != 9)
return 1;
if (Test3.Foo.f != 10)
return 1;
if (Test3.Foo.f2 != 9)
return 1;
Console.WriteLine ("OK");
return 0;
}
}