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

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

class Foo
{
	public static int Main ()
	{
		if (Bar (1))
			return 1;

		if (!Bar (IntPtr.Zero))
			return 2;

		return 0;
	}

	static bool Bar<T> (T val) where T : struct
	{
		return val is IntPtr;
	}
}