Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
Qt Creator 3.2.0-beta1
-
None
-
OS X 10.9
Description
The "registerIntVariable" calls in EditorManager::init() (in 3.2 branch) show parsing errors "duplicate data type in declaration" on the "[]() -> int" in Qt Creator though they are valid.
VariableManager::registerIntVariable(kCurrentDocumentXPos, tr("X-coordinate of the current editor's upper left corner, relative to screen."), []() -> int { IEditor *editor = currentEditor(); return editor ? editor->widget()->mapToGlobal(QPoint(0, 0)).x() : 0; });
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-12521 lambda that returns primitive type fails on parsing
- Closed