:as syntax should be supported for destructuring