Details
-
Bug
-
Resolution: Duplicate
-
P4: Low
-
None
-
Qt Creator 2.7.0
-
None
Description
The second lambda is highlighted as an error, whereas it compiles fine.
int main() { [] () -> int {}; // This line is necessary to trigger the error. [] () -> void {}; // Highlighted as syntax error, 'duplicate data type in declaration' }
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-12521 lambda that returns primitive type fails on parsing
- Closed