HaxeFoundation / hx3compat

Haxe 3 compatibility lib for Haxe 4
MIT License
16 stars 16 forks source link

Can't compile Dispatch with haxe4 preview5 #5

Closed bablukid closed 5 years ago

bablukid commented 6 years ago

Tried to fix it but compiler gets into an infinite loop when trying to define a type for "static var GET_RULES;"

c:\projects\project\.haxelib\hx3compat/1,0,2/std/haxe/web/Dispatch.hx:145: characters 13-22 : Variable requires type-hint or initialization
c:\projects\project\.haxelib\hx3compat/1,0,2/std/haxe/web/Dispatch.hx:85: characters 13-23 : Unknown identifier : makeConfig
bablukid commented 6 years ago

static var GET_RULES:Array<Array<{rule:MatchRule,opt:Bool,name:String}>> = null;

this seems to fix the issue

filt3rek commented 5 years ago

Hej !

Yes, static var GET_RULES = null; is enough. Can someone fix that so we can have it clean when updating haxelib please ?

Thanks in advance,