-
Notifications
You must be signed in to change notification settings - Fork 16
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
#1424 type for closures using class type parameters #1426
Conversation
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.
// XPECT type at findSome --> Number | ||
const findSome = sample.find { x => x.even } | ||
|
||
// method forEach(closure) { self.fold(null, { acc, e => closure.apply(e) }) } |
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.
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> { |
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.
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 |
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.
Es un rename de MinTypeAnalysisResultReporter, no sé por qué no lo muestra bien.
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.