Skip to content

Commit b791b4f

Browse files
committed
Add test case for formatting function inline with class definition, fix wrong formatting
Close #42
1 parent c80aad2 commit b791b4f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

tests/expected/class_inner.gd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,8 @@ class A:
4343
class B:
4444
extends A
4545
var test = 2
46+
47+
48+
class C:
49+
func test(x):
50+
print(x)

tests/input/class_inner.gd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ class A:
2828
class B:
2929
extends A
3030
var test = 2
31+
32+
class C:func test(x):
33+
print(x)

0 commit comments

Comments
 (0)