Преглед изворни кода

improved -main error reporting (fixed issue #1538)

Simon Krajewski пре 12 година
родитељ
комит
7c601aaaee
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      main.ml

+ 1 - 1
main.ml

@@ -148,7 +148,7 @@ let make_path f =
 		let msg =
 			if String.length f == 0 then
 				"Class name must not be empty"
-			else match f.[0] with
+			else match (List.hd (List.rev cl)).[0] with
 				| 'A'..'Z' -> "Invalid class name"
 				| _ -> "Class name must start with uppercase character"
 		in