Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5692

TypeChecked not checking generics placeholder types across arguments when a method has multiple arguments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.2
    • None
    • None

    Description

      import groovy.transform.TypeChecked
      main()
      @TypeChecked main() { printEqual(1, 'foo') }
      @TypeChecked <T> void printEqual(T arg1, T arg2) { println arg1 == arg2 }
      

      Attachments

        Issue Links

          Activity

            People

              melix C├ędric Champeau
              paulk Paul King
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: