J2K: adapted for default visibility modifier 'public'

This commit is contained in:
Valentin Kipyatkov
2015-09-15 11:29:27 +03:00
parent 1ccbda6af4
commit c3ddd5d32b
477 changed files with 1359 additions and 1350 deletions
+5 -5
View File
@@ -2,20 +2,20 @@
// ERROR: A 'return' expression required in a function with a block body ('{...}')
package foo
class A {
fun /* nothing to return */ foo(/* no parameters at all */) {
internal class A {
internal fun /* nothing to return */ foo(/* no parameters at all */) {
// let declare a variable
// with 2 comments before
val /*int*/ a /* it's a */ = 2 /* it's 2 */ + 1 /* it's 1 */ // variable a declared
} // end of foo
fun /* we return int*/ foo(/*int*/ p: Int/* parameter p */): Int {
internal fun /* we return int*/ foo(/*int*/ p: Int/* parameter p */): Int {
/* body is empty */
}
private /*it's private*/ val field = 0
public /*it's public*/ fun foo(s: String): Char {
/*it's public*/ fun foo(s: String): Char {
}
protected /*it's protected*/ fun foo(c: Char) {
@@ -23,6 +23,6 @@ class A {
companion object {
public /*it's public*//*and static*//*and final*/ val C: Int = 1
/*it's public*//*and static*//*and final*/ val C: Int = 1
}
}