Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

21 lines
219 B
C#

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;
}
}