[K2/N] Add klib contents serialization tests from old testinfra
Merge-request: KT-MR-8509 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
8bc2aaa295
commit
debbfa8397
+37
@@ -0,0 +1,37 @@
|
||||
package test
|
||||
|
||||
annotation class anno(val x: String)
|
||||
|
||||
|
||||
@anno("top level function")
|
||||
fun f1(@anno("top level function parameter") p: Int) {}
|
||||
|
||||
@anno("top level property")
|
||||
val p1 = null
|
||||
|
||||
@anno("extension function")
|
||||
fun Long.f2(@anno("extension function parameter") p: Int) {}
|
||||
|
||||
@anno("extension property")
|
||||
val Double.p2: Double get() = 0.0
|
||||
|
||||
@anno("top level class")
|
||||
class C1 @anno("constructor") constructor() {
|
||||
@anno("member function")
|
||||
fun f3(@anno("member function parameter") p: Int) {}
|
||||
|
||||
@anno("member property")
|
||||
val p3 = null
|
||||
|
||||
@anno("member extension function")
|
||||
fun String.f4() {}
|
||||
|
||||
@anno("member extension property")
|
||||
val Int.v4: Int get() = this
|
||||
|
||||
@anno("nested class")
|
||||
class C2
|
||||
|
||||
@anno("companion object")
|
||||
companion object {}
|
||||
}
|
||||
Reference in New Issue
Block a user