mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-25 08:00:04 +08:00
30 lines
542 B
Plaintext
30 lines
542 B
Plaintext
|
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: */
|