Explorar o código

bugfix : use "Dynamic" for no return type

Nicolas Cannasse %!s(int64=17) %!d(string=hai) anos
pai
achega
e22a098218
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      genas3.ml

+ 1 - 1
genas3.ml

@@ -1084,7 +1084,7 @@ let has_getset ml f m =
 let gen_method ctx ch name mt =
 	let m = As3code.iget ctx.as3_method_types (As3parse.no_nz mt) in
 	let ret = (match m.mt3_ret with
-		| None -> "Void"
+		| None -> if name = "new" then "Void" else "Dynamic"
 		| Some t -> s_type_path (type_path ctx t)
 	) in
 	let p = ref 0 in