mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-25 02:20:04 +08:00
30 lines
542 B
Plaintext
Vendored
30 lines
542 B
Plaintext
Vendored
let
|
|
class A extends Object {}
|
|
/* <- keyword */
|
|
/* ^ keyword */
|
|
/* ^ type.builtin */
|
|
|
|
type B = class extends A {
|
|
/* ^ keyword */
|
|
/* ^ keyword */
|
|
/* ^ type */
|
|
|
|
var a := 12
|
|
|
|
method meth() : int = self.a
|
|
/* <- method */
|
|
/* ^ method */
|
|
/* ^ variable.builtin */
|
|
}
|
|
|
|
var object := new B
|
|
/* ^ constructor */
|
|
in
|
|
object.a := 27;
|
|
/* ^ property */
|
|
|
|
object.meth()
|
|
/* ^ method */
|
|
end
|
|
/* vim: set ft=tiger: */
|