System.register(["cc"], function (_export, _context) {
  "use strict";

  var _cclegacy, _decorator, Component, _dec, _class, _crd, ccclass, property, TestDestroy;

  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }

  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

  return {
    setters: [function (_cc) {
      _cclegacy = _cc.cclegacy;
      _decorator = _cc._decorator;
      Component = _cc.Component;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "647abPUFt1NyYAptNLcECT4", "testDestroy", undefined);

      ccclass = _decorator.ccclass;
      property = _decorator.property;

      _export("TestDestroy", TestDestroy = (_dec = ccclass('TestDestroy'), _dec(_class = /*#__PURE__*/function (_Component) {
        _inheritsLoose(TestDestroy, _Component);

        function TestDestroy() {
          return _Component.apply(this, arguments) || this;
        }

        var _proto = TestDestroy.prototype;

        // [1]
        // dummy = '';
        // [2]
        // @property
        // serializableDummy = 0;
        _proto.start = function start() {// [3]
        };

        _proto.testDestroy = function testDestroy() {
          var _this$node$getChildBy;

          (_this$node$getChildBy = this.node.getChildByName("ScrollView")) === null || _this$node$getChildBy === void 0 ? void 0 : _this$node$getChildBy.destroy();
        } // update (deltaTime: number) {
        //     // [4]
        // }
        ;

        return TestDestroy;
      }(Component)) || _class));
      /**
       * [1] Class member could be defined like this.
       * [2] Use `property` decorator if your want the member to be serializable.
       * [3] Your initialization goes here.
       * [4] Your update function goes here.
       *
       * Learn more about scripting: https://docs.cocos.com/creator/3.0/manual/en/scripting/
       * Learn more about CCClass: https://docs.cocos.com/creator/3.0/manual/en/scripting/ccclass.html
       * Learn more about life-cycle callbacks: https://docs.cocos.com/creator/3.0/manual/en/scripting/life-cycle-callbacks.html
       */


      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=testDestroy.js.map