Opened 15 years ago
Last modified 15 years ago
#936 closed defect
Error working with homonymous classes in different modules — at Version 1
| 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 (1)
comment:1 Changed 15 years ago by
| Description: | modified (diff) |
|---|---|
| Status: | new → accepted |
Note: See
TracTickets for help on using
tickets.

Lo miro