HeapsIO / hxbit

Haxe Binary serialization and network synchronization library
155 stars 30 forks source link

haxe 3.2.1 compatibility #1

Closed francescoagati closed 7 years ago

francescoagati commented 7 years ago

hi, when i try to use this library i get some macro errors with haxe 3.2.1

this is the code


class User implements hxbit.Serializable {
  @:s public var name:String;
  @:s public var surname:String;
}

class Main {
  static function main() {
      var user = new User();
      user.name = 'mario';
      user.surname = 'cino';
      var s = user.serialize();
      trace(s);
  }
}

and this the errors


Running build...
: characters 13-40 : Class<haxe.macro.Context> has no field followWithAbstracts
: characters 13-32 : Class<haxe.macro.Context> has no field resolveType
: characters 13-32 : Class<haxe.macro.Context> has no field resolveType
: characters 2-11 : Build failure
Main.hx:2: lines 2-10 : Defined in this class
: characters 2-11 : Build failure
ncannasse commented 7 years ago

HxBit requires Haxe 3.3+

francescoagati commented 7 years ago

thanks