Don't move line and /**/ comments during reformat (KT-18805)
#KT-18805 Fixed
This commit is contained in:
+1
-1
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user