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

Make overloading a link when omitting link keyword work #6718

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

msullivan
Copy link
Member

AlterUnknownPointer works by converting the AST node into an operation
on the relevant concrete pointer sort. It always converted into an
Alter, though, which meant that the overload case, where
AlterObject._cmd_tree_from_ast is called with a Create node, didn't
work right.

Fixes #6716.

AlterUnknownPointer works by converting the AST node into an operation
on the relevant concrete pointer sort. It always converted into an
Alter, though, which meant that the overload case, where
AlterObject._cmd_tree_from_ast is called with a Create node, didn't
work right.

Fixes #6716.
@msullivan msullivan changed the title Make overloading a link when omitting link keyword work Make overloading a link when omitting link keyword work Jan 19, 2024
@corbinday
Copy link

corbinday commented Jan 21, 2024

@msullivan Any chance that your PR will fix this too?
#6716 (comment)

Thanks for working on this! EdgeDB is so much fun to use.

@msullivan msullivan merged commit 4aff93e into master Jan 24, 2024
24 of 25 checks passed
@msullivan msullivan deleted the omitted-link branch January 24, 2024 17:41
aljazerzen pushed a commit that referenced this pull request Jan 25, 2024
AlterUnknownPointer works by converting the AST node into an operation
on the relevant concrete pointer sort. It always converted into an
Alter, though, which meant that the overload case, where
AlterObject._cmd_tree_from_ast is called with a Create node, didn't
work right.

Fixes #6716.
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.

Overloading a link with a more specific type fails
4 participants