8000 Typechecker needs to do additional deliasing by deusaquilus · Pull Request #415 · finos/morphir-scala · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Typechecker needs to do additional deliasing #415

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

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

deusaquilus
Copy link
Contributor
  • Typechecker was not dealising aliases that exist in the middle of a curried function
  • Typechecker was not dealising leaf types
  • Both of these issues were causing issues in client code

@netlify
Copy link
netlify bot commented Sep 12, 2023

Deploy Preview for magical-donut-e8221d ready!

Name Link
🔨 Latest commit 26c3052
🔍 Latest deploy log https://app.netlify.com/sites/magical-donut-e8221d/deploys/6500cba8fc6c060008971872
😎 Deploy Preview https://deploy-preview-415--magical-donut-e8221d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

val newBindings = typeParams.toList.zip(typeArgs.toList).toMap
val missedName = helper(
fqn.packagePath != name.packagePath || fqn.modulePath != name.modulePath,
new OtherTypeError(s"Constructor $fqn does not match type name $name")
Copy link
Member

Choose a reason for hiding this comment

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

If you want to have a friendlier name you can do ${name.toCamelCase} ($name) ... or better yet let this be driven bu an EvaluationContext setting

Copy link
Member
@DamianReeves DamianReeves left a comment

Choose a reason for hiding this comment

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

LGTM

@DamianReeves DamianReeves merged commit 44944d5 into finos:main Sep 12, 2023
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
0