summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-exmethod-24-lib.cs
blob: 71dd6607c31da3f0fbd071cae4967b412e6a4fd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Compiler options: -target:library

using System.Runtime.CompilerServices;

namespace lib1
{
	internal static class Foo
	{
		// It compiles fine, if I make this a non-extension-method:
		public static void Extend (this string aString)
		{
		}
	}
}