Minor: expand dsl highlighting test cases to cover member functions

This commit is contained in:
Pavel V. Talanov
2018-08-01 20:27:40 +02:00
parent e9a9f2a1aa
commit 3d91d4b865
2 changed files with 20 additions and 2 deletions
+10
View File
@@ -21,6 +21,12 @@ fun g() {
}
@A
class AC {
@A
fun a() = ""
}
fun test() {
f() // 4
@@ -31,4 +37,8 @@ fun test() {
g() // 1
ff() // 4
with (A()) {
a() // 4
}
}
+10 -2
View File
@@ -24,10 +24,16 @@ var BC.p7
set(i) {}
@A
class AC
class AC {
@A
val a = ""
}
@B
class BC
class BC {
@B
val b = ""
}
fun test() {
p2 // 4
@@ -35,10 +41,12 @@ fun test() {
with(AC()) {
p1 // 4
a // 4
}
with(BC()) {
p3 // 1
p7 // 1
p7 = 3 // 1
b // 1
}
}