Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "generate Void->Void correctly"

This reverts commit a498b02.
  • Loading branch information...
commit 0df4c5d44172818367fe86ad56bab8ab0b44957a 1 parent 4efb423
@Simn Simn authored
Showing with 1 addition and 2 deletions.
  1. +0 −1  genxml.ml
  2. +1 −1  std/haxe/rtti/XmlParser.hx
View
1  genxml.ml
@@ -98,7 +98,6 @@ let rec gen_type ?(tfunc=None) t =
| TInst (c,params) -> gen_type_decl "c" (TClassDecl c) params
| TAbstract (a,params) -> gen_type_decl "x" (TAbstractDecl a) params
| TType (t,params) -> gen_type_decl "t" (TTypeDecl t) params
- | TFun ([],r) -> node "f" [] [(node "x" ["path","Void"] []);gen_type r]
| TFun (args,r) ->
let s_const ct = match ct with
| TString s -> Printf.sprintf "'%s'" (Ast.s_escape s)
View
2  std/haxe/rtti/XmlParser.hx
@@ -558,7 +558,7 @@ class XmlParser {
CAbstract(mkPath(x.att.path),xtypeparams(x));
case "f":
var args = new List();
- var aname = x.has.a ? x.att.a.split(":") : ["",""]; // Void -> Void
+ var aname = x.att.a.split(":");
var eargs = aname.iterator();
var evalues = x.has.v ? x.att.v.split(":").iterator() : null;
for( e in x.elements ) {
Please sign in to comment.
Something went wrong with that request. Please try again.