Skip to content

Inter-language imports allowed from younger language

Summary

According to Section 8.2.3, point c) of the TTCN-3 standard, "the TTCN-3 language specification in an import statement has to be lower or equal to the TTCN-3 language specification of the importing module".

Steps and/or TTCN-3 code to reproduce

module modules language "TTCN-3:2003"{

type component ct_empty{}

import from F language "TTCN-3:2010" all; //ERROR```

testcase oldimport() runs on ct_empty{
  var oldint voi := 1;
  setverdict(pass);
}

}

also

module F language "TTCN-3:2010"{

type integer oldint

}

What is the current bug behavior?

Code compiles and passes.

What is the expected correct behavior?

Compilation or runtime error due to the import language clause being greater than the language clause of module modules.

Relevant logs and/or screenshots

Possible fixes

Titan version

8.1.0

Platform details (OS type and version)

Microsoft Windows 10 Enterprise 10.0.19042

Edited by Miklos Magyari