Browse Source

no short id for classes without package

Nicolas Cannasse 20 năm trước cách đây
mục cha
commit
140d4b9684
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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