diff --git a/a.py b/a.py deleted file mode 100644 index e40c547..0000000 --- a/a.py +++ /dev/null @@ -1,13 +0,0 @@ -from pointers import Reference, MutReference, ref - -my_value = ref(0) - -def test(my_ref: MutReference[int]) -> None: - print(f"now borrowing mutable {my_ref}") - my_ref <<= 1 - -with my_value.mut(): - my_value <<= 2 - -test(my_value.mut()) -print(~my_value) # 1 \ No newline at end of file