-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
bugSomething isn't workingSomething isn't workingcomponent: validatorLinter / ValidatorLinter / Validatorgood first issueGood for newcomersGood for newcomerspriority: mediumA "should" issue, whenever we have the time to solve itA "should" issue, whenever we have the time to solve it
Description
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:
wollok-ts/src/validator/index.ts
Lines 148 to 151 in feb04ff
export const shouldReferenceToObjects = error<Reference<Node>>(node => { | |
const target = node.target | |
return !target || !target.is(Package) || node.parent.is(Import) | |
}) |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcomponent: validatorLinter / ValidatorLinter / Validatorgood first issueGood for newcomersGood for newcomerspriority: mediumA "should" issue, whenever we have the time to solve itA "should" issue, whenever we have the time to solve it