[tuner] handle the case with multiple "preserve" attributes
[mono-project.git] / mcs / tests / test-anon-109.cs
bloba487a976c83b9f5e44a447844a1da92b9df9a10d
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
5 public delegate void Foo ();
7 public class Test
9 public static implicit operator Foo (Test test)
11 return delegate { Console.WriteLine ("Hello World!"); };
14 public static IEnumerable<Test> operator + (Test test, Test foo)
16 yield return test;
17 yield return foo;
20 public IEnumerable<int> Foo {
21 get {
22 yield return 3;
25 set {
26 Console.WriteLine ("Foo!");
30 public static void Main ()
32 Test test = new Test ();
33 Foo foo = test;
34 foo ();
35 foreach (Test t in test + test)
36 Console.WriteLine (t);