elnabo / json2object

Type safe Haxe/JSON (de)serializer
MIT License
66 stars 17 forks source link

abstract over private class #37

Closed ibilon closed 6 years ago

ibilon commented 6 years ago

Test.hx

abstract Test(TestData)
{
}

private class TestData
{
  public var x : Int;
}

Main.hx

class Main
{
  static function main()
  {
    new json2object.JsonParser<Test>().fromJson("{}", "");
  }
}

Fails with Main.hx:5: characters 9-37 : Test has no field TestData which is to be expected.

ibilon commented 6 years ago

The cs/java/hl can't do it, but works on the others.