Add another recently fixed case

Fixed by 3f4ed82945.

See #1589 and #3011.
This commit is contained in:
Olly Betts 2025-06-17 18:32:28 +12:00
parent 61c542162c
commit 2d717988c2
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ template <decltype(true) X = true>
void A() { }
%}
// Additional test for #1589 (just check SWIG can parse this).
%ignore x1589;
int x1589(int y = std::declval<M>().begin()->first) { return y; }
// %template(A) A<>; // not working
%template(A) A<true>; // workaround