mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 20:10:10 -04:00
15 lines
182 B
Text
15 lines
182 B
Text
|
|
class A {
|
||
|
|
var a := 12
|
||
|
|
|
||
|
|
method method() : int = 1
|
||
|
|
}
|
||
|
|
|
||
|
|
type B = class extends A {
|
||
|
|
var b := 27
|
||
|
|
|
||
|
|
method another_method() = (
|
||
|
|
print("called");
|
||
|
|
self.b + self.method()
|
||
|
|
)
|
||
|
|
}
|