[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git] / mcs / errors / cs0120-2.cs
blob4cea50bc12c8b6b885afddc54c387f505995c63c
1 // CS0120: An object reference is required to access non-static member `Test.Add8(int)'
2 // Line: 12
4 using System;
5 using System.Threading;
6 using System.Reflection;
7 using System.Reflection.Emit;
9 public class Test {
11 public Test () : this (Add8(4), 6) {
12 string hostName = System.Net.Dns.GetHostName ();
13 Console.WriteLine ("Hostname: " + hostName);
16 public Test (int i, int j) {
17 Console.WriteLine ("GOT : " + i + " : " + j);
21 public static void Main (String[] args) {
22 Test t = new Test ();
25 private int Add8 (int i) {
26 return i + 8;