Xamarin Public Jenkins (auto-signing) 536cd135cc Imported Upstream version 5.4.0.167
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
2017-08-21 15:34:15 +00:00

32 lines
426 B
C#

// Compiler options: -r:gtest-646-lib.dll
public class LocalBug<T>
{
public int Foo (LocalBug<T> p1, LocalBug<T> p2)
{
return 1;
}
public int Foo (LocalBug<object> p1, LocalBug<T> p2)
{
return 2;
}
}
class X
{
public static int Main ()
{
var o = new CompilerBug<object> ();
if (o.Foo (o, o) != 2)
return 1;
var o2 = new LocalBug<object> ();
if (o2.Foo (o2, o2) != 2)
return 2;
return 0;
}
}