linux-packaging-mono/mcs/tests/test-static-using-07.cs
Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

25 lines
279 B
C#

using static System.String;
using static S;
struct S
{
internal static int Foo ()
{
return 5;
}
}
class Test
{
public static int Main ()
{
string res = Concat ("a", "b", "c");
if (res != "abc")
return 1;
if (Foo () != 5)
return 2;
return 0;
}
}