Files
kotlin-fork/plugins/kapt3/testData/converter/modifiers.kt
T
Yan Zhulanow 1f1491f1ca Kapt3: Fix a number of errors in ClassFileToSourceStubConverter:
1. Support strictfp modifier for methods.
2. Support Kotlin top-level methods and properties.
3. Fix visibility modifiers on enum methods.
2016-12-05 19:57:41 +03:00

37 lines
862 B
Kotlin
Vendored

package modifiers
public class PublicClass public constructor()
public open class PublicClassProtectedConstructor protected constructor() {
protected interface ProtectedInterface
private interface PrivateInterface
}
public abstract class PublicClassPrivateConstructor private constructor()
internal class InternalClass
private class PrivateClass
public interface PublicInterface
internal interface InternalInterface
private interface PrivateInterface
sealed class SealedClass {
class One : SealedClass()
open class Two : SealedClass()
abstract class Three : Two()
final class Four : Three()
}
class Modifiers {
@Transient
val transientField: String = ""
@Volatile
var volatileField: String = ""
@Strictfp
fun strictFp() {}
@JvmOverloads
fun overloads(a: String = "", n: Int = 5): String = null!!
}