%module cpp20_lambda_template // We just want to test that SWIG doesn't choke parsing this so suppress: // Warning 340: Lambda expressions and closures are not fully supported yet. %warnfilter(SWIGWARN_CPP11_LAMBDA); %include %inline %{ #include auto templated_lambda = [](std::vector t){}; // Regression test for parsing bug fixed in SWIG 4.2.0 (#2630) auto y = []=2> { return 1; }; auto z = [] { return 1; }; %}