Skip to content

Conversation

@dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Sep 14, 2021

Fixes #1684 by hinting whether a lookup is supposed to find a type. Relevant in resolveType within functions, where a type can be shadowed by a local.

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@dcodeIO dcodeIO requested a review from MaxGraey September 14, 2021 10:56
/* @override */
lookupInSelf(name: string): DeclaredElement | null {
var element = super.lookupInSelf(name);
getMember(name: string): DeclaredElement | null {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@MaxGraey
Copy link
Member

Could you fix lint?

@dcodeIO dcodeIO merged commit 62071b7 into main Sep 14, 2021
@dcodeIO dcodeIO deleted the issue-1684 branch September 14, 2021 12:21
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.

Name conflicting with generic params in some cases

3 participants