KT-18786: J2K should move all properties to top of class

#KT-18786 fixed
This commit is contained in:
Dimach
2017-07-14 03:01:39 +03:00
committed by Simon Ogorodnik
parent ccfcfd8721
commit a59021a25e
30 changed files with 117 additions and 103 deletions
+2 -2
View File
@@ -3,6 +3,8 @@
package foo
internal class A {
private /*it's private*/ val field = 0
fun /* nothing to return */ foo(/* no parameters at all */) {
// let declare a variable
// with 2 comments before
@@ -12,8 +14,6 @@ internal class A {
fun /* we return int*/ foo(/*int*/ p: Int/* parameter p */): Int { /* body is empty */
}
private/*it's private*/ val field = 0
/*it's public*/ fun foo(s: String): Char {}
protected/*it's protected*/ fun foo(c: Char) {}