On Fri, Dec 23, 2022 at 5:54 PM Yegappan Lakshmanan <
yega...@gmail.com> 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