JSTQL-JS-Transform/output_testing/945destructuring-same-property-identifier-names.js

20 lines
358 B
JavaScript
Raw Normal View History

import { identity } from "shared-runtime";
function Component(props) {
const {
x: {
destructured
},
sameName: renamed
} = props;
const sameName = destructured |> identity(%);
return [sameName, renamed];
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
x: {
destructured: 0
},
sameName: 2
}]
};