-
Notifications
You must be signed in to change notification settings - Fork 376
Add type unification logic to handle LambdaDecl/Functor's with FuncType
#9010
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
Add type unification logic to handle LambdaDecl/Functor's with FuncType
#9010
Conversation
jkwak-work
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
…LambdaDecl> Add case where argument is a FuncType and parameter is a DeclRefType<LambdaDecl> This may be needed if something like the following is somehow given as a parameter type: `decltype(*some lambda expr*)`
jkwak-work
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
|
Example: |
Pull request was converted to draft
|
Update: generalized the current approach to support Functors |
…://github.com/16-Bit-Dog/slang into type-unification-of-lambda-with-function-type
LambdaDecl with FuncTypeLambdaDecl/Functor's with FuncType
jkwak-work
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Issue:
foo2Problem & Soluition:
inferGenericArguments->tryUnifyTypes->TryUnifyFuncTypesByStructuralMatch