`class` parameter can be an interface in that case, but it prevents usage of lazy attribute.