Explorar o código

improved -main error reporting (fixed issue #1538)

Simon Krajewski %!s(int64=12) %!d(string=hai) anos
pai
achega
7c601aaaee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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