Skip to content

Commit fb449f8

Browse files
committed
Added test for Kotlin referring to null node.
1 parent 856fcdc commit fb449f8

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
languageId: kotlin
2+
command:
3+
version: 7
4+
spokenForm: change value
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: value}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |-
15+
fun main() {
16+
val n = null
17+
println(n)
18+
}
19+
selections:
20+
- anchor: {line: 1, character: 8}
21+
active: {line: 1, character: 8}
22+
marks: {}
23+
finalState:
24+
documentContents: |-
25+
fun main() {
26+
val n =
27+
println(n)
28+
}
29+
selections:
30+
- anchor: {line: 1, character: 12}
31+
active: {line: 1, character: 12}

0 commit comments

Comments
 (0)