{ * File: W5.txt * Author: Michael Schrefl, Bernd Neumayr, Manfred Jeusfeld * Created: 1-Jul-2013/M.Jeusfeld (17-Oct-2013/M.Jeusfeld) * ------------------------------------------------------ * Wrong variant of E5: DualDeepInstantiation * } Mileage in ALABEL end MetricLinearMeasure in OBJECT end CarModel in OBJECT with linkDR m1: MetricLinearMeasure end CarModel!m1 with sourcelevel s: 2 targetlevel t: 2 label l: Mileage end VolvoV50 in OBJECT with IN c1: CarModel linkDR m1: km end VolvoV50!m1 with sourcelevel s: 1 targetlevel t: 1 label l: Mileage end km in OBJECT with IN c1: MetricLinearMeasure IN c2: km {** ERROR 1: 2nd class for km *} end myV50 in OBJECT with IN c1: VolvoV50 linkDR m1: "12km" end "12km" in OBJECT with IN c1: km IN c2: MetricLinearMeasure {** ERROR 2: instantiate to a too distant level *} end myV50!m1 with sourcelevel s: 0 targetlevel t: 0 label l: Mileage end