diff src/testdir/test_vim9_class.vim @ 31404:60b1d266548d v9.0.1035

patch 9.0.1035: object members are not being marked as used Commit: https://github.com/vim/vim/commit/d28d7b94f5a76a817585c115dbf6fecac9b0b4cd Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 8 20:42:00 2022 +0000 patch 9.0.1035: object members are not being marked as used Problem: Object members are not being marked as used, garbage collection may free them. Solution: Mark object members as used. Fix reference counting.
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Dec 2022 21:45:03 +0100
parents 307f68a41b03
children f088f1d97eee
line wrap: on
line diff
--- a/src/testdir/test_vim9_class.vim
+++ b/src/testdir/test_vim9_class.vim
@@ -132,11 +132,10 @@ def Test_class_basic()
 	this.col: number
       endclass
 
-      # # FIXME: this works but leaks memory
-      # # use the automatically generated new() method
-      # var pos = TextPosition.new(2, 12)
-      # assert_equal(2, pos.lnum)
-      # assert_equal(12, pos.col)
+      # use the automatically generated new() method
+      var pos = TextPosition.new(2, 12)
+      assert_equal(2, pos.lnum)
+      assert_equal(12, pos.col)
   END
   v9.CheckScriptSuccess(lines)
 enddef