Dotty and dependent type