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

36 lines
309 B
C#

using System;
partial class A
{
}
partial class A
{
public static int F = 3;
}
partial class B
{
public static int F = 4;
}
partial class B
{
}
public class C
{
public static int Main ()
{
if (A.F != 3)
return 1;
if (B.F != 4)
return 2;
Console.WriteLine ("OK");
return 0;
}
}