Inherited generic functional descriptors are merged incorrectly

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: None
    • Component/s: tools
    • b82

      This code should not compile:

      class LambdaConv25 {

          interface A {
              <X> void m();
          }

          interface B {
              <X> void m();
          }

          interface C extends A, B { }

          void test() {
              C c = ()->{}; //should fail
          }
      }

            Assignee:
            Maurizio Cimadamore
            Reporter:
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: