Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0
-
None
-
qtdeclarative b6a6a63
-
1708b36910984b116b12432e7d27f8fbb25fadfa
Description
The following test case works with Qt 5.1.0 (the rectangle shows up green), but not with the latest qt5-dev.
import QtQuick 2.1 Rectangle { width: 360 height: 360 color: testFunc() function testFunc() { if (true) { // 'conditional function or closure declaration' function nestedFunc() { return "mediumseagreen" } return nestedFunc() } } }
Real-world use case - hslToRgb(): http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c