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

Allow non-parent functions to be cast #128

Merged
merged 10 commits into from
Mar 17, 2023

Conversation

matt-sheets
Copy link
Collaborator

Previously one could only cast a function if it was from an inherited type. Now you can cast a function as long as the function does not reference any associated types.

src/compile.rs Outdated Show resolved Hide resolved
@matt-sheets matt-sheets force-pushed the masheets/more-cast-checking branch from 52f8477 to a1de2f4 Compare February 28, 2023 22:10
@matt-sheets matt-sheets marked this pull request as ready for review February 28, 2023 22:10
src/compile.rs Outdated Show resolved Hide resolved
src/compile.rs Outdated Show resolved Hide resolved
@dburgener
Copy link
Owner

Can you split the commits so that the recursion testing is a separate commit from the casting?

src/compile.rs Outdated Show resolved Hide resolved
src/compile.rs Outdated Show resolved Hide resolved
src/compile.rs Outdated Show resolved Hide resolved
src/compile.rs Outdated Show resolved Hide resolved
src/compile.rs Outdated Show resolved Hide resolved
src/compile.rs Outdated Show resolved Hide resolved
src/compile.rs Outdated Show resolved Hide resolved
src/ast.rs Show resolved Hide resolved
src/functions.rs Outdated Show resolved Hide resolved
src/compile.rs Outdated Show resolved Hide resolved
src/functions.rs Outdated Show resolved Hide resolved
src/functions.rs Outdated Show resolved Hide resolved
src/functions.rs Outdated Show resolved Hide resolved
@matt-sheets matt-sheets force-pushed the masheets/more-cast-checking branch from e70e8c4 to 82dfa40 Compare March 16, 2023 20:01
@dburgener dburgener merged commit f9ecf1f into dburgener:main Mar 17, 2023
@dburgener
Copy link
Owner

Merged, thanks!

dburgener added a commit that referenced this pull request Mar 21, 2023
explicitly declared.

This is mostly done, but still a bit of a WIP:

1. The todo!() is waiting on the merge of #128
2. This all got quite verbose, and should become its own function to
improve readability
3. The test is written, but not added in lib.rs
dburgener added a commit that referenced this pull request Mar 21, 2023
explicitly declared.

This is mostly done, but still a bit of a WIP:

1. The todo!() is waiting on the merge of #128
2. This all got quite verbose, and should become its own function to
improve readability
3. The test is written, but not added in lib.rs
dburgener added a commit that referenced this pull request Mar 27, 2023
explicitly declared.

This is mostly done, but still a bit of a WIP:

1. The todo!() is waiting on the merge of #128
2. This all got quite verbose, and should become its own function to
improve readability
3. The test is written, but not added in lib.rs
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.

2 participants