a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
21 lines
219 B
C#
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;
|
|
}
|
|
}
|