Add class indent tests
This commit is contained in:
parent
f6c2b4c65e
commit
3b2796d9ad
2 changed files with 24 additions and 0 deletions
14
test/indent/classes.tig
Normal file
14
test/indent/classes.tig
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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()
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue