Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing completion items in constructors of inherited types #6002

Merged
merged 2 commits into from
Jan 31, 2019

Conversation

auduchinok
Copy link
Member

@auduchinok auduchinok commented Dec 11, 2018

Fixes #3699. The inner env produced for the base type constructor was preferred in TypeCheckInfo.GetBaseEnvForPos due to having a nested range making parameters from the primary constructor unavailable in the base constructor call and do expressions.

The completion tests code is awfully repeated, should I clean it up in a separate PR or doing it in this PR would be OK?

@dsyme
Copy link
Contributor

dsyme commented Dec 11, 2018

The completion tests code is awfully repeated, should I clean it up in a separate PR or doing it in this PR would be OK?

Separate PR

@cartermp cartermp closed this Dec 11, 2018
@cartermp cartermp reopened this Dec 11, 2018
@auduchinok auduchinok changed the title Do not notify env sink about base constructor (fixes #3699) Fix missing completion items in constructors of inherited types Dec 12, 2018
@auduchinok
Copy link
Member Author

@dsyme Is this approach correct in general? I'm concerned if there're other cases where an FSharpSymbol is created with AddFakeNamedValRefToNameEnv that we should prevent.

@KevinRansom KevinRansom merged commit 7523db9 into dotnet:master Jan 31, 2019
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.

5 participants