Skip to content

Conversation

@datho7561
Copy link
Contributor

@datho7561 datho7561 commented Aug 21, 2025

What it does

The type arguments should be preserved when resolving the type binding through the SimpleName.

For instance:

class Sandwich {}

class Outer<X> {
  public class Inner {
    public class InnerInner<Y> {
    }
  }
}

public class Main {
  public Outer<Sandwich> method1() {
    //   ^^^^^ call resolve binding on this simple name
    return null;
  }
  public Outer<Sandwich>.Inner.InnerInner<Sandwich> method2() {
    //   ^^^^^ call resolve binding on this simple name
    return null;
  }
}

I expect the results to be the same; I expect the result to be Outer<Sandwich>.

How to test

I'll adjust the failing unit and integration tests.

Author checklist

@datho7561 datho7561 force-pushed the parameterized-qualified-type-resolution branch 3 times, most recently from 989c65f to 90c5de4 Compare August 25, 2025 19:07
@datho7561 datho7561 changed the title [WIP] Make qualified parameterized type resolve work like single type Make qualified parameterized type resolve work like single type Aug 25, 2025
i.e. the type arguments should be preserved

Signed-off-by: David Thompson <[email protected]>
@datho7561 datho7561 force-pushed the parameterized-qualified-type-resolution branch from 90c5de4 to 3f3060e Compare August 25, 2025 19:09
@datho7561
Copy link
Contributor Author

@jjohnstn this is the patch Rob mentioned this morning, I finally got the tests passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant