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 type system issues #1991

Merged
merged 13 commits into from
Mar 19, 2021
Merged

Fix type system issues #1991

merged 13 commits into from
Mar 19, 2021

Conversation

PalumboN
Copy link
Contributor

@PalumboN PalumboN commented Mar 13, 2021

Fix #1751
Fix #1958
Fix #1641
Fix #1965

@PalumboN PalumboN requested a review from fdodino March 13, 2021 09:32
@coveralls
Copy link

coveralls commented Mar 13, 2021

Coverage Status

Coverage remained the same at 83.946% when pulling bc376c3 on fix-type-system-issues into 1b57de0 on dev.

@PalumboN PalumboN marked this pull request as draft March 13, 2021 22:02
Copy link
Collaborator

@fdodino fdodino left a comment

Choose a reason for hiding this comment

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

No soy un experto en el type system pero todo parece tener perfecta validancia.

@@ -121,7 +128,7 @@ class ConstraintGenerator {
// TODO Process supertype information: mixins
parentParameters?.arguments?.forEach[generateVariables]
members.forEach[generateVariables]
if (parentParameters !== null) objectParentConstraintsGenerator.add(it)
if(parentParameters !== null) objectParentConstraintsGenerator.add(it)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nooooo, ese espacio era lo más! 😆

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sí, a mí tmb me dolió, me di cuenta en Github 👎

@@ -31,7 +31,7 @@ class WollokCoreTypeDeclarations extends TypeDeclarations {
O >> "shortDescription" === #[] => String;
O >> "kindName" === #[] => String;
O >> "className" === #[] => String;
O >> "error" === #[String] => Void;
O >> "error" === #[String] => THROW_EXCEPTION;
Copy link
Collaborator

Choose a reason for hiding this comment

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

👏🏼

@@ -121,7 +121,8 @@ class UnifyVariables extends AbstractInferenceStrategy {
}
}

def dispatch doUnifyWith(GenericTypeInfo t1, GenericTypeInfo t2) {
def dispatch doUnifyWith(GenericTypeInfo t1, GenericTypeInfo t2) {
t1.validateRecursiveType(t2)
Copy link
Collaborator

Choose a reason for hiding this comment

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

amo

@PalumboN PalumboN marked this pull request as ready for review March 18, 2021 23:07
@PalumboN
Copy link
Contributor Author

Buenísimo @fdodino, ahora cuando termine el CI mergeo. Vengo trabajando en más cosas pero lo mando a otro PR para ir cerrando issues.

@PalumboN PalumboN merged commit b670d10 into dev Mar 19, 2021
@PalumboN PalumboN deleted the fix-type-system-issues branch March 19, 2021 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants