[LC] move light class related tests to one directory
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
class WithClassObject {
|
||||
companion object {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
class C() {
|
||||
fun V.f() : {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
fun V.f() {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package test
|
||||
|
||||
class NoModifiers
|
||||
|
||||
// Visibility
|
||||
public class Public
|
||||
private class Private
|
||||
internal class Internal
|
||||
class Outer {
|
||||
public class Public
|
||||
protected class Protected
|
||||
private class Private
|
||||
internal class Internal
|
||||
|
||||
inner class Inner
|
||||
}
|
||||
|
||||
// Modality
|
||||
abstract class Abstract
|
||||
open class Open
|
||||
final class Final
|
||||
|
||||
// Special
|
||||
annotation class Annotation
|
||||
enum class Enum
|
||||
interface Trait
|
||||
|
||||
// Deprecation
|
||||
@Deprecated("") class DeprecatedClass
|
||||
@kotlin.Deprecated("") class DeprecatedFQN
|
||||
@kotlin. Deprecated /**/ ("") class DeprecatedFQNSpaces
|
||||
@[Deprecated("")] class DeprecatedWithBrackets
|
||||
@[kotlin.Deprecated("")] class DeprecatedWithBracketsFQN
|
||||
@[kotlin
|
||||
./**/Deprecated ("")] class DeprecatedWithBracketsFQNSpaces
|
||||
|
||||
// Generic
|
||||
class Generic1<T>
|
||||
class Generic2<A, B>
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
class Generic1<T>
|
||||
class Generic1WithBounds<T: Bound1>
|
||||
|
||||
class Generic2<A, B>
|
||||
class Generic2WithBounds<A, B> where A: Bound1, A: Bound2, B: Generic1<A>
|
||||
|
||||
class Bound1
|
||||
interface Bound2
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun foo()
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
class PlatformStaticClass {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
fun <T> inClassObject() {}
|
||||
}
|
||||
|
||||
fun <T> inClass() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user