This code renders an error message on the assignment in the nested lambda, but not on the outer one. The message claims that running the lambda returns int!This is (probably) a further simplified example of the bug I reported earlier today, which involved operator overloading. What I didn't realize then was that due to the present bug my overloaded operators were never called!class Class {};void Testit(){ Class& obj = [&]()->Class& { return *new Class; }(); // no compiler error [&]()->double { Class& obj = [&]()->Class& { return *new Class; }(); // compiler error };}
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results