final Type expected = this.<Type>env(G, "expected", Type.class);
coerceInternal(G, _trace_, str, expected);
resultType = expected;
} catch (Exception e) {
previousFailure = extractRuleFailedException(e);
<BUG>StringType _createStringType = ExpressionsFactory.eINSTANCE.createStringType();

resultType = _createStringType;</BUG>
}
}

final Type expected = this.<Type>env(G, "expected", Type.class);
coerceInternal(G, _trace_, str, expected);
resultType = expected;
} catch (Exception e) {
previousFailure = extractRuleFailedException(e);
resultType = ExpressionsFactory.eINSTANCE.createStringType();
}
}
