J2K: do not produce redundant "internal" words for members in an internal class
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
internal fun foo() {
|
||||
fun foo() {
|
||||
when (a) {
|
||||
1 -> {
|
||||
val x = 1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
internal fun foo() {
|
||||
fun foo() {
|
||||
Loop@ while (true) {
|
||||
when (take()) {
|
||||
1 -> continue
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ internal enum class ColorEnum {
|
||||
}
|
||||
|
||||
internal class MyClass {
|
||||
internal fun method(colorEnum: ColorEnum): Int {
|
||||
fun method(colorEnum: ColorEnum): Int {
|
||||
when (colorEnum) {
|
||||
ColorEnum.GREEN -> return 1
|
||||
else -> return 2
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
internal fun foo() {
|
||||
fun foo() {
|
||||
when (a) {
|
||||
-> {
|
||||
println("1")
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
internal fun foo(a: Int): Int {
|
||||
fun foo(a: Int): Int {
|
||||
when (a) {
|
||||
1 -> {
|
||||
println("1")
|
||||
|
||||
Reference in New Issue
Block a user