--- /dev/null
+// 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)
+ {
+ }
+ }
+}
--- /dev/null
+// Compiler options: -r:gtest-exmethod-24-lib.dll
+
+using lib1;
+
+public class Bar
+{
+ public static void Main ()
+ {
+ }
+}
--- /dev/null
+// Compiler options: -target:library
+
+using System.Runtime.CompilerServices;
+
+[assembly:InternalsVisibleTo ("gtest-exmethod-25")]
+
+namespace lib1
+{
+ static class Foo
+ {
+ internal static void Extend (this string aString)
+ {
+ }
+ }
+}
--- /dev/null
+// Compiler options: -r:gtest-exmethod-25-lib.dll
+
+using lib1;
+
+public class Bar
+{
+ public static void Main ()
+ {
+ "a".Extend ();
+ }
+}
</method>
</type>
</test>
+ <test name="gtest-exmethod-24.cs">
+ <type name="Bar">
+ <method name="Void .ctor()">
+ <size>7</size>
+ </method>
+ <method name="Void Main()">
+ <size>1</size>
+ </method>
+ </type>
+ </test>
+ <test name="gtest-exmethod-25.cs">
+ <type name="Bar">
+ <method name="Void .ctor()">
+ <size>7</size>
+ </method>
+ <method name="Void Main()">
+ <size>11</size>
+ </method>
+ </type>
+ </test>
<test name="gtest-friend-01.cs">
<type name="Test">
<method name="Void .ctor()">