Don't move line and /**/ comments during reformat (KT-18805)

#KT-18805 Fixed
This commit is contained in:
Nikolay Krasko
2017-07-05 20:17:54 +03:00
parent ebdadf30d8
commit 7f8d6b3008
10 changed files with 70 additions and 31 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import java.util.ArrayList // we need ArrayList
// let's declare a class:
internal class A /* just a sample name*/ : Runnable /* let's implement Runnable */ {
fun foo/* again a sample name */(p: Int /* parameter p */, c: Char /* parameter c */) {
fun foo /* again a sample name */(p: Int /* parameter p */, c: Char /* parameter c */) {
// let's print something:
println("1") // print 1
println("2") // print 2
+2 -2
View File
@@ -12,11 +12,11 @@ internal class A {
fun /* we return int*/ foo(/*int*/ p: Int/* parameter p */): Int { /* body is empty */
}
private /*it's private*/ val field = 0
private/*it's private*/ val field = 0
/*it's public*/ fun foo(s: String): Char {}
protected /*it's protected*/ fun foo(c: Char) {}
protected/*it's protected*/ fun foo(c: Char) {}
/**
* Method description.