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:
authorRavi Pratap M <ravi@mono-cvs.ximian.com>2003-09-03 00:14:13 +0400
committerRavi Pratap M <ravi@mono-cvs.ximian.com>2003-09-03 00:14:13 +0400
commitc32725d1b427b766cb2e04a421be1a422ecd834c (patch)
tree27c57588dcfe80c309991d872064e411d3dc3081 /mcs/tests/test-102.cs
parent3da8bd84bf5603419596946767c5ff69cec4c1fe (diff)
Flush
svn path=/trunk/mcs/; revision=17832
Diffstat (limited to 'mcs/tests/test-102.cs')
-rw-r--r--mcs/tests/test-102.cs17
1 files changed, 14 insertions, 3 deletions
diff --git a/mcs/tests/test-102.cs b/mcs/tests/test-102.cs
index f72af0f8778..9787fa75795 100644
--- a/mcs/tests/test-102.cs
+++ b/mcs/tests/test-102.cs
@@ -17,6 +17,17 @@ namespace N1 {
}
}
+ [AttributeUsage (AttributeTargets.ReturnValue)]
+ public class ReturnAttribute : Attribute {
+
+ public string name;
+
+ public ReturnAttribute (string s)
+ {
+ name = s;
+ }
+ }
+
interface A {
[Mine ("hello")]
void Hello ();
@@ -27,7 +38,7 @@ namespace N1 {
int i;
[Mine ("Foo")]
- [return: Mine ("Bar")]
+ [return: Return ("Bar")]
public static int Main ()
{
Type t = typeof (Foo);
@@ -42,12 +53,12 @@ namespace N1 {
Console.WriteLine ("Got more than one return attribute");
return 1;
}
- if (!(ret_attrs [0] is MineAttribute)){
+ if (!(ret_attrs [0] is ReturnAttribute)){
Console.WriteLine ("Dit not get a MineAttribute");
return 2;
}
- MineAttribute ma = (MineAttribute) ret_attrs [0];
+ ReturnAttribute ma = (ReturnAttribute) ret_attrs [0];
if (ma.name != "Bar"){
Console.WriteLine ("The return attribute is not Bar");
return 2;