[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-exmethod-12.cs
1
2
3 using System;
4 using System.Collections.Specialized;
5
6 class Program
7 {
8         public static void Main(string[] args)
9         {
10                 var chat = new ChatClient();
11                 var lines = new StringCollection() { "a", "b", "c" };
12                 chat.Say("test", lines);
13         }
14 }
15
16 class ChatClient
17 {
18         public void Say(string to, string message)
19         {
20                 Console.WriteLine("{0}: {1}", to, message);
21         }
22 }
23
24
25 static class ChatExtensions
26 {
27         public static void Say(this ChatClient chat, string to, StringCollection lines)
28         {
29                 foreach (string line in lines)
30                 {
31                         chat.Say(to, line);
32                 }
33         }
34 }