\node_modules\typescript-to-lua\dist\transformation\builtins\index.js:114
const ownerSymbol = callSymbol.parent;
^
TypeError: Cannot read properties of undefined (reading 'parent')
function test<T>(iterator: Iterator<T, T>) {
iterator.return && iterator.return();
}
When updating a project from 1.6.2 to 1.8.0, I encountered an error:
code to reproduce error:
https://typescripttolua.github.io/play/#code/GYVwdgxgLglg9mABFApgZygHgCoD4AUMqATgIZRzEBciAkieZTgDSJ4CUiA3gFCL+IiKMhWIA6YiighiSAGRzBDURKkyw+dgG4eAXyA
In version 1.6.2 this code works