godot/modules/gdscript/tests/scripts/runtime/assign_to_read_only_property_with_variable_index.gd

func test():
	var state = PhysicsDirectBodyState3DExtension.new()
	var prop = &"center_of_mass"
	assign(state, prop)
	state.free()

func assign(state, prop):
	state[prop].x = 1.0