#936 closed defect (fixed)
Error working with homonymous classes in different modules
Reported by: | Pedro Gea | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | OOP | Version: | |
Severity: | critical | Keywords: | |
Cc: |
Description (last modified by )
Al trabajar con clases homónimas en distintos módulos encontramos el siguiente error:
NameBlock M1 = [[ Class @Test { Real value } ]]; M1::@Test t1 = [[ Real value = 1 ]]; NameBlock M2 = [[ Class @Test { Real value2 }; Real fun(M1::@Test t) { t::value } ]]; Real M2::fun(t1); //> ERROR: [] (t1) no es un NameBlock instancia de @Test
Parece que el módulo M2 entiende que el argumento M1::@Test
corresponde a su propia clase @Test y no la del módulo M1 como se indica.
Change History (4)
comment:1 Changed 15 years ago by
Description: | modified (diff) |
---|---|
Status: | new → accepted |
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:3 Changed 15 years ago by
comment:4 Changed 15 years ago by
Lo siento, es un lío esto si te equivocas poniendo el commit al principio luego es complicado de arreglar.
El cambio que arregla el ticket es exclusivamente el [2364]
Note: See
TracTickets for help on using
tickets.
Lo miro