<?hh
// Copyright 2004-present Facebook. All Rights Reserved.

class C {
  const C = "C::C";
  private $np = C::C;
  protected $nq = C::C;
  public $nr = C::C;
  private $p = 1;
  protected $q = 2;
  public $r = 3;
}

class D extends C {
  const D = "D::D";
  private $np = D::D;
  protected $nq = D::D;
  public $nr = D::D;
  private $p;
  protected $q;
  public $r;
}

var_dump(HH\object_prop_array(new C));
var_dump(HH\object_prop_array(new D));
