'Summary: multiplying a scalar by a non-scalar would cause a crash in
type inference because TimeDeltaMixOp always assumed at least one of
its operands was an NPTimeDelta in its generic() method.'

def test_issue_868(self):

    with self.assertRaises(TypingError) as raises:
        compile_isolated(issue_868, (types.Array(types.int32, 1, 'C'),))
    expected = 'Invalid    usage    of    *    with    parameters    (({0}    x    1),    {0})'.format(str(types.intp))
    self.assertIn(expected, str(raises.exception))
    self.assertIn('[1]    During:    typing    of', str(raises.exception))
