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

#1424 type for closures using class type parameters #1426

Merged
merged 4 commits into from
Jul 19, 2018

Conversation

npasserini
Copy link
Member

Esto es muy básico y requiere más laburo que ya está en marcha pero hasta acá anda así que propongo mergear para no tener luego un PR gigante.

ClosureTypeAnnotations y sirve para cualquier tipo genérico.
- Includes test plan for all type tests on lists.
- Add typing information for list/set/collection/range.
@ghost ghost assigned npasserini Jul 16, 2018
@ghost ghost added the in progress label Jul 16, 2018
// XPECT type at findSome --> Number
const findSome = sample.find { x => x.even }

// method forEach(closure) { self.fold(null, { acc, e => closure.apply(e) }) }
Copy link
Member Author

Choose a reason for hiding this comment

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

Estos tests que siguen no andan, por eso es todo comentario... bah, ni siquiera son tests, pero marca los siguientes pasos de cosas a testear.

*
* Por ahora se permite, un poco por compatibilidad hacia atrás.
*/
class GenericTypeAnnotation extends SimpleTypeAnnotation<GenericType> {
Copy link
Member Author

Choose a reason for hiding this comment

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

Creo que en un futuro esto debería djar de ser subtipo de annotation

@@ -0,0 +1,64 @@
package org.uqbar.project.wollok.typesystem.constraints.variables
Copy link
Member Author

Choose a reason for hiding this comment

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

Es un rename de MinTypeAnalysisResultReporter, no sé por qué no lo muestra bien.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.904% when pulling 2ae6936 on #1424-type-for-closures-using-class-type-parameters into 1bfea71 on dev-1.6.

@npasserini
Copy link
Member Author

@fdodino

@fdodino fdodino merged commit 279fc9f into dev-1.6 Jul 19, 2018
@ghost ghost removed the in progress label Jul 19, 2018
@fdodino fdodino deleted the #1424-type-for-closures-using-class-type-parameters branch July 19, 2018 14:58
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.

None yet

3 participants