}
@Test
public void testSuspend() {
// final I i = new C();
Fiber co = new Fiber((String)null, null, new SuspendableRunnable() {
@Override
public final void run() throws SuspendExecution {
// next line causes an error because of incomplete merge in TypeInterpreter
//SomeInterface i = System.currentTimeMillis() > 0 ? new C() : new C2();
SomeInterface i = new C();
System.out.println("i = " + i);
i.doStuff();
}
});
while (!TestsHelper.exec(co))
System.out.println("State=" + co.getState());
System.out.println("State=" + co.getState());
}