NerdLang/nerd

Compilation error returning anonymous function

InDIOS opened this issue ยท 2 comments

Hi @adrien-thierry. Testing some code, like always ๐Ÿ˜‚, i found that when you have this code:

function some() {
  return function () { // This never compile to a lambda expression in c++
    // do something ...
  }
}

Maybe createAnon function isn't working properly.
Greetings.

Thx for the issue,

I will add a visitor for returning a lambda

Sorry for the delay to address this issue, i was working on performance, i will correct this one this week