Explorar o código

added type constraint.

Nicolas Cannasse %!s(int64=19) %!d(string=hai) anos
pai
achega
4742e12da2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 
 }