Skip to content

Handle type annotations on method reference qualifiers - #984

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_577228869
Oct 30, 2023
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_577228869

Conversation

@copybara-service

Copy link
Copy Markdown

Handle type annotations on method reference qualifiers

e.g.

Supplier<List<?>> a = @A(0x45) ArrayList::new;
Supplier<List<?>> b = @A(0x46) ImmutableList::of;

The necessary logic is already there, but the start position information
for the method reference doesn't include the leading type annotations,
which was resulting in an assertion to fail.

e.g.

```
Supplier<List<?>> a = @A(0x45) ArrayList::new;
Supplier<List<?>> b = @A(0x46) ImmutableList::of;
```

The necessary logic is already there, but the start position information
for the method reference doesn't include the leading type annotations,
which was resulting in an assertion to fail.

PiperOrigin-RevId: 577850593
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