2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0038-2.cs
blob1940fc9c3120bebea37743d462b990245e3b7ef3
1 // CS0038: Cannot access a nonstatic member of outer type `Outer' via nested type `Outer.Inner'
2 // Line: 33
4 public class Runner
6 string msg;
8 public Runner (string s)
10 msg = s;
13 public string Report ()
15 return msg;
19 public class Outer
21 private Runner r = new Runner ("Outer");
23 public Runner Runner
25 get { return r; }
26 set { r = value; }
29 class Inner
31 public string Check ()
33 return Runner.Report ();