Explorar el Código

no short id for classes without package

Nicolas Cannasse hace 20 años
padre
commit
140d4b9684
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      genswf8.ml

+ 3 - 1
genswf8.ml

@@ -416,7 +416,9 @@ let gen_ident =
 	loop
 
 let gen_type ctx t extern =
-	try
+	if fst t = [] then 
+		snd t
+	else try
 		let id , e = Hashtbl.find ctx.types t in
 		if e <> extern then assert false;
 		id