title: Bug? "Reference to method is ambiguous" in Groovy
body: <pre><code>package bug
  import groovy.transform.CompileStatic
  
  @CompileStatic
  class BugCheck
  {
      static void main(String[] args)
      {
          new BugCheck()
      }
  
      BugCheck()
      {
          new Child().method(1f)  // causes the problem
      }
  
      class Parent
      {
          void method(float f, boolean b=true)
          {
              println("Parent")
          }
      }
  
      class Child extends Parent
      {
          @Override
          void method(float f)
          {
              println("Child")
          }
      }
  }
  </code></pre>
  
  <p>Compiling this piece of code with Groovy 2.3.4 leads to the following error:</p>
  
  <p><em>/mirror/dev/Groovy/src/bug/BugCheck.groovy: 17: [Static type checking] - Reference to method is ambiguous. Cannot choose between [void bug.BugCheck$Child#method(float), void bug.BugCheck$Child#method(float)]</em></p>
  
  <p>Is this a bug in Groovy, or do I miss something here?</p>