disable type inference for closure variables as it currently breaks the closure class attribute setup