import org.simantics.scl.compiler.types.TVar;
import org.simantics.scl.compiler.types.Type;
import org.simantics.scl.compiler.types.Types;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public final class ValRef implements IVal {
+ private static final Logger LOGGER = LoggerFactory.getLogger(ValRef.class);
public static final ValRef[] EMPTY_ARRAY = new ValRef[0];
Val binding;
try {
binding.occurrence = next;
} catch(NullPointerException e) {
- System.err.println("removeModiId = " + removeModiId);
- System.err.println("current ModiId = " + SSASimplificationContext.modiId);
+ LOGGER.error("removeModiId = " + removeModiId);
+ LOGGER.error("current ModiId = " + SSASimplificationContext.modiId, e);
throw new InternalCompilerError("The ValRef has already been removed.");
}
else