qmlweb / qmlweb-parser

A QML parser in JavaScript
Other
27 stars 11 forks source link

Assigning functions to properties should work #32

Closed ChALkeR closed 7 years ago

ChALkeR commented 7 years ago

This is valid QML, but does not get parsed correctly:

import QtQuick 2.6

SomeItem {
  bar: function() {
  }
}

This does work, though:

import QtQuick 2.6

Item {
  property var bar: function() {
  }
}
ChALkeR commented 7 years ago

Related: #15 and 3fea94d53efb48f74062c90e61cf3f60496b7f96 (this is where the second example was fixed).