Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-263.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ff7870fc29331ffb22e2f0bd041f1cfea7047441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Collections.Generic;

class Foo<S>
{
	public ICloneable Test (S t)
	{
		return (ICloneable) t;
	}
}

public static class ConvertHelper
{
	public static IEnumerator<T> Test<S,T> (S s)
		where T : S
	{
		yield return (T) s;
	}

	public static void Main ()
	{ }
}