Explorar o código

no short id for classes without package

Nicolas Cannasse %!s(int64=20) %!d(string=hai) anos
pai
achega
140d4b9684
Modificáronse 1 ficheiros con 3 adicións e 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