linux-packaging-mono/mono/tests/bug-473482.2.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

36 lines
478 B
C#

using System;
public class Program
{
static void Main()
{
try
{
new Foo<object>(0, 0);
}
catch (Exception ex)
{
var t = ex.StackTrace;
}
}
}
public class Foo<T> : FooBase
{
int i;
int ii;
public Foo(int i, int ii)
{
this.i = i;
this.ii = ii;
this.iii = 0;
throw new Exception();
}
}
public abstract class FooBase
{
protected int iii;
}