소스 검색

added type constraint.

Nicolas Cannasse 19 년 전
부모
커밋
4742e12da2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 
 }