K2: add bytecode listing tests
#KT-57171 Fixed
This commit is contained in:
Vendored
+4
-1
@@ -1,5 +1,9 @@
|
||||
// IGNORE_ANNOTATIONS
|
||||
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies
|
||||
// (in this case, it's `getOrDefault-h8vw2VU` because of inline class mangling, and then `remove` is unmangled for some reason)
|
||||
|
||||
inline class IK(val x: Int)
|
||||
inline class IV(val x: Double)
|
||||
|
||||
@@ -13,4 +17,3 @@ inline class InlineMap(private val map: Map<IK, IV>) : Map<IK, IV> {
|
||||
override fun get(key: IK): IV? = map[key]
|
||||
override fun isEmpty(): Boolean = map.isEmpty()
|
||||
}
|
||||
|
||||
|
||||
Vendored
+4
-1
@@ -1,5 +1,9 @@
|
||||
// IGNORE_ANNOTATIONS
|
||||
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies
|
||||
// (in this case, it's `remove-YEowaJk`/`getOrDefault-h8vw2VU` because of inline class mangling)
|
||||
|
||||
inline class IK(val x: Int)
|
||||
inline class IV(val x: Double)
|
||||
|
||||
@@ -17,4 +21,3 @@ inline class InlineMutableMap(private val mmap: MutableMap<IK, IV>) : MutableMap
|
||||
override fun putAll(from: Map<out IK, IV>) { mmap.putAll(from) }
|
||||
override fun remove(key: IK): IV? = mmap.remove(key)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user