#2915 closed defect (fixed)
Warn or error when re-binding the same variable in pattern mattching
| Reported by: | Adrian Pop | Owned by: | Martin Sjölund |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.4 |
| Component: | MetaModelica | Version: | trunk |
| Keywords: | Cc: |
Description
case (A(x), B(x))
should give at least a warning.
Change History (4)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
| Milestone: | Future → 1.9.4 |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
This is getting fixed in https://github.com/OpenModelica/OMCompiler/pull/440
Note:
See TracTickets
for help on using tickets.

I opened m:#1921 to give the same kind of warnings for
(x,x) := f(...).