summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1061-17.cs
blob: 1e1749684b4094313f4686de3408cb35a9603c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS1061: Type `int' does not contain a definition for `Foo' and no extension method `Foo' of type `int' could be found. Are you missing an assembly reference?
// Line: 11

using System;

static class C
{
	static void Main ()
	{
		int i = 1;
		Action a = i.Foo;
	}

	static void Foo (this string s)
	{
	}
}