Browse Source

Merge pull request #4955 from Gama11/badPatternMessageWording

Improve the wording on the invalid field for pattern error
Simon Krajewski 9 years ago
parent
commit
da2ef6e147
2 changed files with 2 additions and 2 deletions
  1. 1 1
      matcher.ml
  2. 1 1
      tests/misc/projects/Issue4954/compile-fail.hxml.stderr

+ 1 - 1
matcher.ml

@@ -193,7 +193,7 @@ module Pattern = struct
 				| TCast(e1,None) ->
 					loop e1
 				| TField _ ->
-					raise (Bad_pattern "Only inline or read-only (default, never) fields can be used as pattern")
+					raise (Bad_pattern "Only inline or read-only (default, never) fields can be used as a pattern")
 				| _ ->
 					raise Exit
 			in

+ 1 - 1
tests/misc/projects/Issue4954/compile-fail.hxml.stderr

@@ -1 +1 @@
-Main.hx:6: characters 17-27 : Only inline or read-only (default, never) fields can be used as pattern
+Main.hx:6: characters 17-27 : Only inline or read-only (default, never) fields can be used as a pattern