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

Super in traits causes MissingMethodException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4.7
    • None
    • Static compilation

    Description

      @CompileStatic
      trait SimpleTrait {
          void foo() {
              super.foo()
          }
      }
      
      @CompileStatic
      class Foo implements SimpleTrait {}
      
      new Foo().foo() // MissingMethodException
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              daniilo Daniil Ovchinnikov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: