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

31 lines
258 B
C#

class C
{
public static void Main ()
{
Create (false);
}
static IA Create (bool arg)
{
// Verifier issue
IA runner = arg ? new B2 () : (IA) new B1 ();
return runner;
}
}
interface IA
{
}
class B2 : IA
{
}
class B1 : B
{
}
class B : IA
{
}