What is the error you’re getting? I can’t construct dist1 and dist2 that way (I am on 4.0). Can you also provide more context about exactly what you’re trying to achieve here? This, however, works for me.
dist1
dist2