it should work. the template inheritance is not resolved at compile time as the parent can be dynamic