Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-12521

lambda that returns primitive type fails on parsing

XMLWordPrintable

    • 06e2c3309efffe3a1866134f6b1db65ffd907370

      Doesn't happen for the first lambda, and doesn't happen if the return type is a class.

      void foo()
      {
          func([]() -> int { return 42; }); // correct
          func([]() -> int { return 42; }); // duplicate data type in declaration
          func([]() -> int { return 42; }); // duplicate data type in declaration
      }

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes