Not allowing methods indexing on local declarations