parseML\!WidgetType should return WidgetType

This commit is contained in:
Vadim Lopatin 2016-06-28 14:36:46 +03:00
parent 9f52be92b8
commit 6b3b1cd62f
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ class MLParser {
/// Parse DlangUI ML code
public Widget parseML(T = Widget)(string code, string filename = "", Widget context = null) {
public T parseML(T = Widget)(string code, string filename = "", Widget context = null) {
MLParser parser = new MLParser(code, filename, context);
scope(exit) destroy(parser);
Widget w = parser.parse();