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

Puedo devolver una clase en un método #332

Open
PalumboN opened this issue Jan 30, 2025 · 0 comments
Open

Puedo devolver una clase en un método #332

PalumboN opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working component: validator Linter / Validator good first issue Good for newcomers priority: medium A "should" issue, whenever we have the time to solve it

Comments

@PalumboN
Copy link
Contributor

class Entrenador { }

object o { method m() = Entrenador }

Este código no marca ningún error :(

Habría que tocar la validación que verifica que solo podés referenciar objetos en el código para que tenga en cuenta clases y mixines:

export const shouldReferenceToObjects = error<Reference<Node>>(node => {
const target = node.target
return !target || !target.is(Package) || node.parent.is(Import)
})

@PalumboN PalumboN added bug Something isn't working component: validator Linter / Validator good first issue Good for newcomers priority: medium A "should" issue, whenever we have the time to solve it labels Jan 30, 2025
@PalumboN PalumboN changed the title Puedo devolver una clase Puedo devolver una clase en un método Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: validator Linter / Validator good first issue Good for newcomers priority: medium A "should" issue, whenever we have the time to solve it
Projects
None yet
Development

No branches or pull requests

1 participant