Opened 10 years ago

Closed 9 years ago

#3327 closed defect (fixed)

Redeclare enumeration doesn't work

Reported by: Maksimov Doe Owned by: somebody
Priority: high Milestone: 1.9.3
Component: Frontend Version: trunk
Keywords: Cc:

Description

model Ex
  class Foo1
    extends Foo(redeclare type T = enumeration(One, Two));
  end Foo1;
  parameter Foo1.T f;
end Ex;

partial class Foo
  replaceable type T = enumeration(:);
end Foo;

I get the flattening model with empty enumeration T:

class Ex
  parameter enumeration() f;
end Ex;

And for partial class Foo replaceable type T = enumeration(One); end Foo; I get:

class Ex
  parameter enumeration(One) f;
end Ex;

As you can see redeclaration doesn't affect enumeration T at all.

Change History (1)

comment:1 by Adrian Pop, 9 years ago

Milestone: Future1.9.3
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.