import { M as o, v as e, c3 as u } from "./56c67d3b.js";
import "react";
import "react-dom";
const c = function() {
  const t = {
    cnt: e(1),
    str: e("df")
  };
  return new o(t, (n) => n).setPropertyViewFn(() => null).build();
}(), r = u(c, (t) => typeof t == "number" ? {
  cnt: t + 100,
  str: ""
} : t);
test("test migrate old data", () => {
  let t = new r({
    value: {
      cnt: 11
    }
  });
  expect(t.getView().cnt).toEqual(11), t = new r({
    value: 12
  }), expect(t.getView().cnt).toEqual(112);
});
export {
  c as TestComp
};
