tree:
.
├── autoload
│ └── mytest
│ ├── bar
│ │ └── baz.vim
│ └── foo.vim
└── test.vim
autoload/mytest/bar/baz.vim
:
vim9script export class Baz def Test(): string return "test" enddef endclass
autoload/mytest/foo.vim
:
vim9script import autoload 'mytest/bar/baz.vim' export def MyTestFoo() const instance = baz.Baz.new() return instance.Test() enddef
test.vim
:
vim9script import autoload 'mytest/foo.vim' import autoload 'mytest/bar/baz.vim' def NotInAutoload() const instance = baz.Baz.new() echo "not autoload " .. instance.Test() enddef def InAutoload() echo "autoload " .. foo.MyTestFoo() enddef NotInAutoload() # success InAutoload() # throw E1048 not found Baz
In autoload, import and use another autoloaded class normally.
9.1.0412
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.