summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0122-34.cs
blob: 41a825c3bee5cb126e9247299abbaa2b26a1cc3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS0122: `Foo.Print(this string)' is inaccessible due to its protection level
// Line: 19


using System;

static class Foo
{
	static void Print (this string s)
	{
	}
}

static class Program
{
	static void Main(string[] args)
	{
		string s = "Hello, world";
		Foo.Print(s);
	}
}