So bar has become an item With all the properties A and B. Any functionality can be a constructor; it just doesn't always seem sensible. I ran into this difficulty using docker Develop. What on earth is your docker Model? Upgrading to the newest version helped me remedy The problem! https://luxuryvillasindwarka.blogspot.com