1. 05 Dec, 2018 1 commit
    • smasher164's avatar
      cmd/compile: improve error message for non-final variadic parameter · a7af4743
      smasher164 authored
      Previously, when a function signature had defined a non-final variadic
      parameter, the error message always referred to the type associated with that
      parameter. However, if the offending parameter's name was part of an identifier
      list with a variadic type, one could misinterpret the message, thinking the
      problem had been with one of the other names in the identifer list.
      
          func bar(a, b ...int) {}
      clear ~~~~~~~^       ^~~~~~~~ confusing
      
      This change updates the error message and sets the column position to that of
      the offending parameter's name, if it exists.
      
      Fixes #28450.
      
      Change-Id: I076f560925598ed90e218c25d70f9449ffd9b3ea
      Reviewed-on: https://go-review.googlesource.com/c/152417
      Run-TryBot: Matthew Dempsky <mdempsky@google.com>
      Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
      a7af4743
  2. 04 Dec, 2018 14 commits
  3. 03 Dec, 2018 10 commits
  4. 02 Dec, 2018 2 commits
  5. 01 Dec, 2018 6 commits
  6. 30 Nov, 2018 7 commits