From 3d91d4b86538a914b1ad42ab31a1d09f65523224 Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Wed, 1 Aug 2018 20:27:40 +0200 Subject: [PATCH] Minor: expand dsl highlighting test cases to cover member functions --- idea/testData/dslHighlighter/functionCalls.kt | 10 ++++++++++ idea/testData/dslHighlighter/propertyAccess.kt | 12 ++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/idea/testData/dslHighlighter/functionCalls.kt b/idea/testData/dslHighlighter/functionCalls.kt index b8e300fb8df..2b543c54673 100644 --- a/idea/testData/dslHighlighter/functionCalls.kt +++ b/idea/testData/dslHighlighter/functionCalls.kt @@ -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 + } } \ No newline at end of file diff --git a/idea/testData/dslHighlighter/propertyAccess.kt b/idea/testData/dslHighlighter/propertyAccess.kt index 9b53fc86acc..50213f5b5f1 100644 --- a/idea/testData/dslHighlighter/propertyAccess.kt +++ b/idea/testData/dslHighlighter/propertyAccess.kt @@ -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 } } \ No newline at end of file