536cd135cc
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
32 lines
426 B
C#
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;
|
|
}
|
|
}
|
|
|