groovy
  1. groovy
  2. GROOVY-4359

Generic types are incorrectly shared/resolved within the module

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8-beta-1
    • Fix Version/s: None
    • Component/s: class generator
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The following code should not compile, as class A is defined as a generic class and not class B, but type variables' resolution is spilling over from A to other non-related classes in the same module.

      Test.groovy
      class A<T>{}
      
      class B {
          T f
      }
      

      However, the following should continue to work

      class A<T>{
          class B {
              T f
          }
      }
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            blackdrag blackdrag
            Reporter:
            Roshan Dawrani
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: