Opened 15 years ago

Last modified 14 years ago

#1141 closed defect (worksforme)

class restriction 'type' can only be derived from predefined types (from MathCore)

Reported by: Jan Brugård Owned by: Jan Brugård
Priority: high Milestone:
Component: Version:
Keywords: Cc: Jan Brugård, Per Östlund

Description

See the models:

type TransformationMatrix= Real[3,3];
type Orientation "Orientation type defining rotation from a frame 1 into a frame 2 with a transformation matrix"
  extends TransformationMatrix;
end Orientation;

when using the class orientation there is the error message:

Error: In class Orientation, class restriction 'type' can only be derived from predefined types.

Change History (2)

comment:2 by Per Östlund, 15 years ago

I can't replicate this problem. A simple model such as

model test
   Orientation o = {{0,0,0},{0,0,0},{0,0,0}};
end test;

works as expected. If the problem persists for you, please provide a usage of the Orientation class that triggers the bug.

Note: See TracTickets for help on using tickets.