Opened 11 years ago
#1729 new defect
Error usando atributos estáticos
Reported by: | Pedro Gea | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | normal | Milestone: | Mantainance |
Component: | OOP | Version: | 3.1 |
Severity: | normal | Keywords: | |
Cc: |
Description
Se ha encontrado un error al utilizar atributos estáticos al fallar la localización del atributo cuando su tipo no está definido en la llamada:
Class @A { Static Text AS = "static"; Real Length(Real void) { WriteLn("Anything "<<ObjectExist("Anything", "AS")); // -> 0 WriteLn("Text "<<ObjectExist("Text", "AS")); // -> 1 WriteLn("B: (1) "<<AS); // -> Error WriteLn("B: (2) "<<Text AS); // -> OK TextLength(AS) } }; @A a = [[Real _void = 1]]; Real a::Length(?); // -> 6 /* Anything 0 Text 1 ERROR: [] AS no es un objeto valido para el tipo Anything. [Call stack] [1] Real a::Length (Real void) ERROR: [] Argumentos erróneos para Text << txt1 << x2 {Text txt1, Anything x2} [Call stack] [1] Real a::Length (Real void) B: (2) static */
Note: See
TracTickets for help on using
tickets.