Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/errors/cs0246-15.cs')
-rw-r--r--mcs/errors/cs0246-15.cs31
1 files changed, 0 insertions, 31 deletions
diff --git a/mcs/errors/cs0246-15.cs b/mcs/errors/cs0246-15.cs
deleted file mode 100644
index e8738932087..00000000000
--- a/mcs/errors/cs0246-15.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// cs0246-15.cs: The type or namespace name `InvalidTypeBlah' could not be found. Are you missing a using directive or an assembly reference?
-// Line: 17
-
-//
-// This test is here to test that the compiler does not crash after it
-// reports the error due to an invalid type being referenced in the
-// delegate
-//
-using System;
-
-public class AnonDelegateTest
-{
- public delegate void TestDelegate(AnonDelegateTest something, string b);
-
- public static void Main()
- {
- AnonDelegateTest test = new AnonDelegateTest();
-
- // Incorrect; mcs throws unhandled exception here
- test.Call(delegate(InvalidTypeBlah something, string b) {
- Console.WriteLine(b);
- });
- }
-
- public void Call(TestDelegate d)
- {
- d(this, "Hello");
- }
-}
-
-