Kapt: Remove comments inside enum values (KT-22350)

This commit is contained in:
Yan Zhulanow
2018-01-24 00:06:51 +03:00
parent a171874b2f
commit abda4bfb57
4 changed files with 81 additions and 10 deletions
@@ -42,4 +42,21 @@ annotation class Anno
class Test4 {
// method simple comment
fun method() {}
}
enum class EnumError {
One {
override fun doIt() = ""
class OneOne {
/** Documentation for 'test'. */
fun test() {}
}
},
Two {
/** Documentation for 'doIt'. */
override fun doIt() = ""
};
abstract fun doIt(): String
}
@@ -10,6 +10,23 @@ public abstract @interface Anno {
////////////////////
import java.lang.System;
@kotlin.Metadata()
public enum EnumError {
/*public static final*/ One /* = new EnumError() */,
/*public static final*/ Two /* = new EnumError() */;
@org.jetbrains.annotations.NotNull()
public abstract java.lang.String doIt();
EnumError() {
}
}
////////////////////
import java.lang.System;
/**