Extended Parametrized class

In reply to rag123:

It’s not clear what you are expecting. Your code is equivalent to

class B #(type Q = A#(real)) extends A#(int);
  Q mux; // equivalent to A#(real) mux;
 
endclass