a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
31 lines
258 B
C#
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
|
|
{
|
|
} |