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/tests/test-83.cs')
-rwxr-xr-xmcs/tests/test-83.cs47
1 files changed, 0 insertions, 47 deletions
diff --git a/mcs/tests/test-83.cs b/mcs/tests/test-83.cs
deleted file mode 100755
index f416ddb4a6d..00000000000
--- a/mcs/tests/test-83.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//
-// This test probes that we treat events differently than fields
-// This used to cause a compiler crash.
-//
-using System;
-
-delegate void PersonArrivedHandler (object source, PersonArrivedArgs args);
-
-class PersonArrivedArgs /*: EventArgs*/ {
- public string name;
- public PersonArrivedArgs (string name) {
- this.name = name;
- }
-}
-
-class Greeter {
- string greeting;
-
- public Greeter (string greeting) {
- this.greeting = greeting;
- }
-
- public void HandlePersonArrived (object source, PersonArrivedArgs args) {
- Console.WriteLine(greeting, args.name);
- }
-}
-
-class Room {
- public event PersonArrivedHandler PersonArrived;
-
- public Room () {
- // Assign a value to it, this also used to crash the compiler.
- PersonArrived = null;
- }
-
- public void AddPerson (string name) {
- PersonArrived(this, null); //(this, PersonArrivedArgs(name));
- }
-}
-
-class DelegateTest {
- static int Main () {
- return 0;
- }
-}
-
-