瀏覽代碼

[lua] add proper type for Ereg.FLAGS

Justin Donaldson 9 年之前
父節點
當前提交
787580bb77
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/lua/_std/EReg.hx

+ 1 - 1
std/lua/_std/EReg.hx

@@ -32,7 +32,7 @@ class EReg {
 	var s : String; // the last matched string
 	var m : Table<Int,Int>; // the [start:Int, end:Int, and submatches:String (matched groups)] as a single table.
 
-	static var FLAGS = Rex.flags();
+	static var FLAGS : Table<String,Int> = Rex.flags();
 
 	public function new( r : String, opt : String ) : Void {
 		var ropt = 0;