On Fri, Dec 23, 2022 at 5:54 PM Yegappan Lakshmanan <[email protected]> wrote:
>
> Hi,
>
> When sourcing the following script twice, I see the below ASAN error:
>
> ----------------------------------------------------------------------
> vim9script
>
> class MyCar
>   this.make: string
>
>   def new(make_arg: string)
>       this.make = make_arg
>   enddef
>
>   def GetMake()
>       echomsg $"make = {this.make}"
>   enddef
> endclass
>
> var c = MyCar.new("abc")
> c.GetMake()
> ----------------------------------------------------------------------
>

I also see a similar ASAN error, when sourcing the following script:

---------------------------------------------------------------------------
vim9script

class MyCar
  this.make: string

  def new(make_arg: string)
      this.make = make_arg
  enddef

  def GetMake()
      echomsg $"make = {this.make}"
  enddef
endclass

var c = MyCar.new("abc")
c.GetMake()

var c = MyCar.new("def")
c.GetMake()
---------------------------------------------------------------------------

- Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7mP8Oo99G20P9fBPewZsVMEe4xvaz0551-QarJpCO%2BPmw%40mail.gmail.com.

Raspunde prin e-mail lui