2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / tests / gtest-183.cs
blob5c533228ed18546b112c606d9aa06f10a285e809
1 using System;
2 using System.Collections.Generic;
4 namespace test
6 class Test<T>
8 public IEnumerable<T> Lookup(T item)
10 byte i = 3;
11 byte j = 3;
12 yield return item;
16 class Program
18 public static void Main (string[] args)
20 Test<string> test = new Test<string>();
21 foreach(string s in test.Lookup("hi") )
23 Console.WriteLine(s);