Implement inheritance in DCG builder.