[KLIB tool] Add tests for dumping IR signatures
^KT-62341
This commit is contained in:
committed by
Space Team
parent
a49723e35c
commit
93506bcb95
@@ -0,0 +1,21 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
package callables
|
||||
|
||||
class Foo(val list: List<*>)
|
||||
private class Bar(val collection: Collection<*>)
|
||||
|
||||
fun funWithoutParameters() = 42
|
||||
fun funWith1Parameter(map: Map<*, *>) = map.entries
|
||||
fun funWith2Parameters(pair: Pair<*, *>, foo: Foo) = pair.hashCode() + foo.list.size
|
||||
private fun funWithPrivateParameter(bar: Bar) = bar.collection.iterator()
|
||||
|
||||
fun funWithLocalMembers() {
|
||||
class LocalClass
|
||||
fun localFun() {
|
||||
LocalClass().toString()
|
||||
}
|
||||
localFun()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user