mirror of https://github.com/buggins/dlangui.git
parseML\!WidgetType should return WidgetType
This commit is contained in:
parent
9f52be92b8
commit
6b3b1cd62f
|
|
@ -492,7 +492,7 @@ class MLParser {
|
||||||
|
|
||||||
|
|
||||||
/// Parse DlangUI ML code
|
/// 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);
|
MLParser parser = new MLParser(code, filename, context);
|
||||||
scope(exit) destroy(parser);
|
scope(exit) destroy(parser);
|
||||||
Widget w = parser.parse();
|
Widget w = parser.parse();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue