﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4875	Duplication of clases creates weird Modelica code	Christian Kral <dr.christian.kral@…>	Adeel Asghar	"Create any Modelica class, e.g., the model:

{{{
model Test
  constant Real one=1;
equation
end Test;
}}}

Save the Modelica class as ""Test.mo"". Make a right click on Test -> Duplicate and select.

{{{
Name: Test
Path: Test
}}}

This creates model Test within Test. One can do this with other Modelica classes as well. If applied to a package, the outcome is legal Modelica code but it seems very much not to be legal to create any class with any class. So the application of **Duplicate** on any Modelica shall not be allowed. 

**Note:** The effect described in this ticket is very likely to be a problem to beginners. I recently noticed that this something my students stumble into, when working with the duplication of models. "	defect	closed	high	1.14.0	OMEdit		fixed		
