Bläddra i källkod

added type constraint.

Nicolas Cannasse 19 år sedan
förälder
incheckning
4742e12da2
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      std/EReg.hx

+ 1 - 1
std/EReg.hx

@@ -256,7 +256,7 @@ class EReg {
 	static var regexp_new_options = neko.Lib.load("regexp","regexp_new_options",2);
 	static var regexp_match = neko.Lib.load("regexp","regexp_match",4);
 	static var regexp_matched = neko.Lib.load("regexp","regexp_matched",2);
-	static var regexp_matched_pos = neko.Lib.load("regexp","regexp_matched_pos",2);
+	static var regexp_matched_pos : Dynamic -> Int -> { pos : Int, len : Int } = neko.Lib.load("regexp","regexp_matched_pos",2);
 #end
 
 }