Skip to content

Commit

Permalink
NFC: extend top-level decls test case
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhinkin committed May 27, 2024
1 parent c222e26 commit 75b3174
Show file tree
Hide file tree
Showing 7 changed files with 408 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ abstract class examples.classes/AC { // examples.classes/AC|null[0]
constructor <init>() // examples.classes/AC.<init>|<init>(){}[0]
final fun b() // examples.classes/AC.b|b(){}[0]
}
abstract fun interface examples.classes/FI { // examples.classes/FI|null[0]
abstract fun a() // examples.classes/FI.a|a(){}[0]
}
abstract interface examples.classes/I // examples.classes/I|null[0]
abstract interface examples.classes/II // examples.classes/II|null[0]
final class examples.classes/C { // examples.classes/C|null[0]
constructor <init>(kotlin/Any) // examples.classes/C.<init>|<init>(kotlin.Any){}[0]
final fun m() // examples.classes/C.m|m(){}[0]
Expand All @@ -28,17 +32,34 @@ final class examples.classes/D { // examples.classes/D|null[0]
final val x // examples.classes/D.x|{}x[0]
final fun <get-x>(): kotlin/Int // examples.classes/D.x.<get-x>|<get-x>(){}[0]
}
final class examples.classes/IC : examples.classes/II { // examples.classes/IC|null[0]
constructor <init>() // examples.classes/IC.<init>|<init>(){}[0]
}
final class examples.classes/Outer { // examples.classes/Outer|null[0]
constructor <init>() // examples.classes/Outer.<init>|<init>(){}[0]
final class Nested { // examples.classes/Outer.Nested|null[0]
constructor <init>() // examples.classes/Outer.Nested.<init>|<init>(){}[0]
final enum class NE : kotlin/Enum<examples.classes/Outer.Nested.NE> { // examples.classes/Outer.Nested.NE|null[0]
enum entry A // examples.classes/Outer.Nested.NE.A|null[0]
enum entry B // examples.classes/Outer.Nested.NE.B|null[0]
enum entry C // examples.classes/Outer.Nested.NE.C|null[0]
final fun valueOf(kotlin/String): examples.classes/Outer.Nested.NE // examples.classes/Outer.Nested.NE.valueOf|valueOf#static(kotlin.String){}[0]
final fun values(): kotlin/Array<examples.classes/Outer.Nested.NE> // examples.classes/Outer.Nested.NE.values|values#static(){}[0]
final val entries // examples.classes/Outer.Nested.NE.entries|#static{}entries[0]
final fun <get-entries>(): kotlin.enums/EnumEntries<examples.classes/Outer.Nested.NE> // examples.classes/Outer.Nested.NE.entries.<get-entries>|<get-entries>#static(){}[0]
}
final inner class Inner { // examples.classes/Outer.Nested.Inner|null[0]
constructor <init>() // examples.classes/Outer.Nested.Inner.<init>|<init>(){}[0]
}
final inner class YetAnotherInner { // examples.classes/Outer.Nested.YetAnotherInner|null[0]
constructor <init>() // examples.classes/Outer.Nested.YetAnotherInner.<init>|<init>(){}[0]
}
}
}
final const val examples.classes/con // examples.classes/con|{}con[0]
final fun <get-con>(): kotlin/String // examples.classes/con.<get-con>|<get-con>(){}[0]
final const val examples.classes/intCon // examples.classes/intCon|{}intCon[0]
final fun <get-intCon>(): kotlin/Int // examples.classes/intCon.<get-intCon>|<get-intCon>(){}[0]
final enum class examples.classes/E : kotlin/Enum<examples.classes/E> { // examples.classes/E|null[0]
enum entry A // examples.classes/E.A|null[0]
enum entry B // examples.classes/E.B|null[0]
Expand All @@ -48,20 +69,60 @@ final enum class examples.classes/E : kotlin/Enum<examples.classes/E> { // examp
final val entries // examples.classes/E.entries|#static{}entries[0]
final fun <get-entries>(): kotlin.enums/EnumEntries<examples.classes/E> // examples.classes/E.entries.<get-entries>|<get-entries>#static(){}[0]
}
final enum class examples.classes/EE : kotlin/Enum<examples.classes/EE> { // examples.classes/EE|null[0]
enum entry AA // examples.classes/EE.AA|null[0]
enum entry BB // examples.classes/EE.BB|null[0]
enum entry CC // examples.classes/EE.CC|null[0]
final fun valueOf(kotlin/String): examples.classes/EE // examples.classes/EE.valueOf|valueOf#static(kotlin.String){}[0]
final fun values(): kotlin/Array<examples.classes/EE> // examples.classes/EE.values|values#static(){}[0]
final val entries // examples.classes/EE.entries|#static{}entries[0]
final fun <get-entries>(): kotlin.enums/EnumEntries<examples.classes/EE> // examples.classes/EE.entries.<get-entries>|<get-entries>#static(){}[0]
}
final fun <#A: kotlin/Any?> examples.classes/consume(#A) // examples.classes/consume|consume(0:0){0§<kotlin.Any?>}[0]
final fun examples.classes/testFun(): kotlin/Int // examples.classes/testFun|testFun(){}[0]
final inline fun examples.classes/testInlineFun() // examples.classes/testInlineFun|testInlineFun(){}[0]
final object examples.classes/O // examples.classes/O|null[0]
final object examples.classes/OO // examples.classes/OO|null[0]
final val examples.classes/a // examples.classes/a|{}a[0]
final fun <get-a>(): kotlin/Any // examples.classes/a.<get-a>|<get-a>(){}[0]
final val examples.classes/i // examples.classes/i|{}i[0]
final fun <get-i>(): kotlin/Int // examples.classes/i.<get-i>|<get-i>(){}[0]
final val examples.classes/l // examples.classes/l|{}l[0]
final fun <get-l>(): kotlin/Long // examples.classes/l.<get-l>|<get-l>(){}[0]
final var examples.classes/d // examples.classes/d|{}d[0]
final fun <get-d>(): kotlin/Double // examples.classes/d.<get-d>|<get-d>(){}[0]
final fun <set-d>(kotlin/Double) // examples.classes/d.<set-d>|<set-d>(kotlin.Double){}[0]
final var examples.classes/r // examples.classes/r|{}r[0]
final fun <get-r>(): kotlin/Float // examples.classes/r.<get-r>|<get-r>(){}[0]
final fun <set-r>(kotlin/Float) // examples.classes/r.<set-r>|<set-r>(kotlin.Float){}[0]
open annotation class examples.classes/A : kotlin/Annotation { // examples.classes/A|null[0]
constructor <init>() // examples.classes/A.<init>|<init>(){}[0]
}
open annotation class examples.classes/AA : kotlin/Annotation { // examples.classes/AA|null[0]
constructor <init>() // examples.classes/AA.<init>|<init>(){}[0]
}
open annotation class examples.classes/AAA : kotlin/Annotation { // examples.classes/AAA|null[0]
constructor <init>() // examples.classes/AAA.<init>|<init>(){}[0]
}
open class examples.classes/OC { // examples.classes/OC|null[0]
constructor <init>() // examples.classes/OC.<init>|<init>(){}[0]
constructor <init>(kotlin/Int) // examples.classes/OC.<init>|<init>(kotlin.Int){}[0]
constructor <init>(kotlin/Long) // examples.classes/OC.<init>|<init>(kotlin.Long){}[0]
constructor <init>(kotlin/String) // examples.classes/OC.<init>|<init>(kotlin.String){}[0]
final fun c() // examples.classes/OC.c|c(){}[0]
final val ix // examples.classes/OC.ix|{}ix[0]
final fun <get-ix>(): kotlin/Int // examples.classes/OC.ix.<get-ix>|<get-ix>(){}[0]
final val iy // examples.classes/OC.iy|{}iy[0]
final fun <get-iy>(): kotlin/Long // examples.classes/OC.iy.<get-iy>|<get-iy>(){}[0]
final val iz // examples.classes/OC.iz|{}iz[0]
final fun <get-iz>(): kotlin/String // examples.classes/OC.iz.<get-iz>|<get-iz>(){}[0]
final var x // examples.classes/OC.x|{}x[0]
final fun <get-x>(): kotlin/Int // examples.classes/OC.x.<get-x>|<get-x>(){}[0]
final fun <set-x>(kotlin/Int) // examples.classes/OC.x.<set-x>|<set-x>(kotlin.Int){}[0]
final var y // examples.classes/OC.y|{}y[0]
final fun <get-y>(): kotlin/Int // examples.classes/OC.y.<get-y>|<get-y>(){}[0]
final fun <set-y>(kotlin/Int) // examples.classes/OC.y.<set-y>|<set-y>(kotlin.Int){}[0]
final var z // examples.classes/OC.z|{}z[0]
final fun <get-z>(): kotlin/Int // examples.classes/OC.z.<get-z>|<get-z>(){}[0]
final fun <set-z>(kotlin/Int) // examples.classes/OC.z.<set-z>|<set-z>(kotlin.Int){}[0]
open fun o(): kotlin/Int // examples.classes/OC.o|o(){}[0]
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ abstract class examples.classes/AC { // examples.classes/AC|null[0]
constructor <init>() // examples.classes/AC.<init>|<init>(){}[0]
final fun b() // examples.classes/AC.b|b(){}[0]
}
abstract fun interface examples.classes/FI { // examples.classes/FI|null[0]
abstract fun a() // examples.classes/FI.a|a(){}[0]
}
abstract interface examples.classes/I // examples.classes/I|null[0]
abstract interface examples.classes/II // examples.classes/II|null[0]
final class examples.classes/C { // examples.classes/C|null[0]
constructor <init>(kotlin/Any) // examples.classes/C.<init>|<init>(kotlin.Any){}[0]
final fun m() // examples.classes/C.m|m(){}[0]
Expand All @@ -28,17 +32,34 @@ final class examples.classes/D { // examples.classes/D|null[0]
final val x // examples.classes/D.x|{}x[0]
final fun <get-x>(): kotlin/Int // examples.classes/D.x.<get-x>|<get-x>(){}[0]
}
final class examples.classes/IC : examples.classes/II { // examples.classes/IC|null[0]
constructor <init>() // examples.classes/IC.<init>|<init>(){}[0]
}
final class examples.classes/Outer { // examples.classes/Outer|null[0]
constructor <init>() // examples.classes/Outer.<init>|<init>(){}[0]
final class Nested { // examples.classes/Outer.Nested|null[0]
constructor <init>() // examples.classes/Outer.Nested.<init>|<init>(){}[0]
final enum class NE : kotlin/Enum<examples.classes/Outer.Nested.NE> { // examples.classes/Outer.Nested.NE|null[0]
enum entry A // examples.classes/Outer.Nested.NE.A|null[0]
enum entry B // examples.classes/Outer.Nested.NE.B|null[0]
enum entry C // examples.classes/Outer.Nested.NE.C|null[0]
final fun valueOf(kotlin/String): examples.classes/Outer.Nested.NE // examples.classes/Outer.Nested.NE.valueOf|valueOf#static(kotlin.String){}[0]
final fun values(): kotlin/Array<examples.classes/Outer.Nested.NE> // examples.classes/Outer.Nested.NE.values|values#static(){}[0]
final val entries // examples.classes/Outer.Nested.NE.entries|#static{}entries[0]
final fun <get-entries>(): kotlin.enums/EnumEntries<examples.classes/Outer.Nested.NE> // examples.classes/Outer.Nested.NE.entries.<get-entries>|<get-entries>#static(){}[0]
}
final inner class Inner { // examples.classes/Outer.Nested.Inner|null[0]
constructor <init>() // examples.classes/Outer.Nested.Inner.<init>|<init>(){}[0]
}
final inner class YetAnotherInner { // examples.classes/Outer.Nested.YetAnotherInner|null[0]
constructor <init>() // examples.classes/Outer.Nested.YetAnotherInner.<init>|<init>(){}[0]
}
}
}
final const val examples.classes/con // examples.classes/con|{}con[0]
final fun <get-con>(): kotlin/String // examples.classes/con.<get-con>|<get-con>(){}[0]
final const val examples.classes/intCon // examples.classes/intCon|{}intCon[0]
final fun <get-intCon>(): kotlin/Int // examples.classes/intCon.<get-intCon>|<get-intCon>(){}[0]
final enum class examples.classes/E : kotlin/Enum<examples.classes/E> { // examples.classes/E|null[0]
enum entry A // examples.classes/E.A|null[0]
enum entry B // examples.classes/E.B|null[0]
Expand All @@ -48,20 +69,60 @@ final enum class examples.classes/E : kotlin/Enum<examples.classes/E> { // examp
final val entries // examples.classes/E.entries|#static{}entries[0]
final fun <get-entries>(): kotlin.enums/EnumEntries<examples.classes/E> // examples.classes/E.entries.<get-entries>|<get-entries>#static(){}[0]
}
final enum class examples.classes/EE : kotlin/Enum<examples.classes/EE> { // examples.classes/EE|null[0]
enum entry AA // examples.classes/EE.AA|null[0]
enum entry BB // examples.classes/EE.BB|null[0]
enum entry CC // examples.classes/EE.CC|null[0]
final fun valueOf(kotlin/String): examples.classes/EE // examples.classes/EE.valueOf|valueOf#static(kotlin.String){}[0]
final fun values(): kotlin/Array<examples.classes/EE> // examples.classes/EE.values|values#static(){}[0]
final val entries // examples.classes/EE.entries|#static{}entries[0]
final fun <get-entries>(): kotlin.enums/EnumEntries<examples.classes/EE> // examples.classes/EE.entries.<get-entries>|<get-entries>#static(){}[0]
}
final fun <#A: kotlin/Any?> examples.classes/consume(#A) // examples.classes/consume|consume(0:0){0§<kotlin.Any?>}[0]
final fun examples.classes/testFun(): kotlin/Int // examples.classes/testFun|testFun(){}[0]
final inline fun examples.classes/testInlineFun() // examples.classes/testInlineFun|testInlineFun(){}[0]
final object examples.classes/O // examples.classes/O|null[0]
final object examples.classes/OO // examples.classes/OO|null[0]
final val examples.classes/a // examples.classes/a|{}a[0]
final fun <get-a>(): kotlin/Any // examples.classes/a.<get-a>|<get-a>(){}[0]
final val examples.classes/i // examples.classes/i|{}i[0]
final fun <get-i>(): kotlin/Int // examples.classes/i.<get-i>|<get-i>(){}[0]
final val examples.classes/l // examples.classes/l|{}l[0]
final fun <get-l>(): kotlin/Long // examples.classes/l.<get-l>|<get-l>(){}[0]
final var examples.classes/d // examples.classes/d|{}d[0]
final fun <get-d>(): kotlin/Double // examples.classes/d.<get-d>|<get-d>(){}[0]
final fun <set-d>(kotlin/Double) // examples.classes/d.<set-d>|<set-d>(kotlin.Double){}[0]
final var examples.classes/r // examples.classes/r|{}r[0]
final fun <get-r>(): kotlin/Float // examples.classes/r.<get-r>|<get-r>(){}[0]
final fun <set-r>(kotlin/Float) // examples.classes/r.<set-r>|<set-r>(kotlin.Float){}[0]
open annotation class examples.classes/A : kotlin/Annotation { // examples.classes/A|null[0]
constructor <init>() // examples.classes/A.<init>|<init>(){}[0]
}
open annotation class examples.classes/AA : kotlin/Annotation { // examples.classes/AA|null[0]
constructor <init>() // examples.classes/AA.<init>|<init>(){}[0]
}
open annotation class examples.classes/AAA : kotlin/Annotation { // examples.classes/AAA|null[0]
constructor <init>() // examples.classes/AAA.<init>|<init>(){}[0]
}
open class examples.classes/OC { // examples.classes/OC|null[0]
constructor <init>() // examples.classes/OC.<init>|<init>(){}[0]
constructor <init>(kotlin/Int) // examples.classes/OC.<init>|<init>(kotlin.Int){}[0]
constructor <init>(kotlin/Long) // examples.classes/OC.<init>|<init>(kotlin.Long){}[0]
constructor <init>(kotlin/String) // examples.classes/OC.<init>|<init>(kotlin.String){}[0]
final fun c() // examples.classes/OC.c|c(){}[0]
final val ix // examples.classes/OC.ix|{}ix[0]
final fun <get-ix>(): kotlin/Int // examples.classes/OC.ix.<get-ix>|<get-ix>(){}[0]
final val iy // examples.classes/OC.iy|{}iy[0]
final fun <get-iy>(): kotlin/Long // examples.classes/OC.iy.<get-iy>|<get-iy>(){}[0]
final val iz // examples.classes/OC.iz|{}iz[0]
final fun <get-iz>(): kotlin/String // examples.classes/OC.iz.<get-iz>|<get-iz>(){}[0]
final var x // examples.classes/OC.x|{}x[0]
final fun <get-x>(): kotlin/Int // examples.classes/OC.x.<get-x>|<get-x>(){}[0]
final fun <set-x>(kotlin/Int) // examples.classes/OC.x.<set-x>|<set-x>(kotlin.Int){}[0]
final var y // examples.classes/OC.y|{}y[0]
final fun <get-y>(): kotlin/Int // examples.classes/OC.y.<get-y>|<get-y>(){}[0]
final fun <set-y>(kotlin/Int) // examples.classes/OC.y.<set-y>|<set-y>(kotlin.Int){}[0]
final var z // examples.classes/OC.z|{}z[0]
final fun <get-z>(): kotlin/Int // examples.classes/OC.z.<get-z>|<get-z>(){}[0]
final fun <set-z>(kotlin/Int) // examples.classes/OC.z.<set-z>|<set-z>(kotlin.Int){}[0]
open fun o(): kotlin/Int // examples.classes/OC.o|o(){}[0]
}
Loading

0 comments on commit 75b3174

Please sign in to comment.