Redundant semicolon: fix false positive between modifier and declaration

#KT-25579 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-07-24 04:34:10 +03:00
committed by Mikhail Glukhikh
parent 1898df3fb7
commit 2bf3b435f2
7 changed files with 53 additions and 0 deletions
@@ -0,0 +1,4 @@
fun test(import: Int) {
import<caret>;
val a = 1
}
@@ -0,0 +1,4 @@
fun test(import: Int) {
import
val a = 1
}
@@ -0,0 +1,5 @@
// PROBLEM: none
fun test(data: Int) {
data<caret>;
val a = 1
}
@@ -0,0 +1,6 @@
// PROBLEM: none
fun test(inline: Int) {
inline<caret>;
fun a() {
}
}
@@ -0,0 +1,6 @@
// PROBLEM: none
fun test(public: Int) {
public // comment1
<caret>; // comment2
class A
}