Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

38 lines
429 B
C#

//
// Tests if we can invoke static members using the short
// names
//
using System;
namespace N1
{
public class A
{
int x;
string s;
void Bar ()
{
x = int.Parse ("0");
s = string.Format("{0}", x);
}
public static int Main ()
{
A a = new A ();
a.Bar ();
if (a.x != 0)
return 1;
if (a.s != "0")
return 1;
Console.WriteLine ("Bar set s to " + a.s);
return 0;
}
}
}