Commit 13634b93 authored by Miklos Magyari's avatar Miklos Magyari
Browse files

OOP: do not generate implicit constructor for trait classes


Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent 587250f3
......@@ -313,7 +313,7 @@ public final class Class_Type extends Type implements ITypeWithComponents {
initAttributes(timestamp);
if (classBody != null) {
if (classBody.hasExplicitConstructor() == true || classBody.hasConstructor()) {
if (classBody.hasExplicitConstructor() == true || classBody.hasConstructor() || isTrait()) {
// hasContructor = true;
} else {
// add default implicit constructor
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment