add support for anywhere var declaration in func body