title: eomonth operand type clash (Msg 2016)
body: <pre><code>DECLARE @DateMin AS date = DATEFROMPARTS(2019, 7, 19);
  DECLARE @DateTimeMax AS datetime = EOMONTH(@DateMin)+1;
  </code></pre>
  
  <p>Error Messages:</p>
  
  <blockquote>
    <p>Msg 2016, Level 16.<br />
    operand type clash. date is incompatible with int.</p>
  </blockquote>
  
  <p>Error happens on the second line.
  Using SQL Server 2016.</p>