a56d1d3ce8
Avoid name clashes in cases such as
inline class Login(val login: String)
inline class Password(val password: String)
fun validate(login: Login) { ... }
fun validate(password: Password) { ... }
18 lines
365 B
Kotlin
Vendored
18 lines
365 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline class Foo(val b: Bar)
|
|
inline class Bar(val i: Int)
|
|
|
|
object Test {
|
|
fun simple(f: Foo) {}
|
|
fun listOfFoo(f: List<Foo>) {}
|
|
}
|
|
|
|
// method: Test::simple$1e4ch6lh
|
|
// jvm signature: (I)V
|
|
// generic signature: null
|
|
|
|
// method: Test::listOfFoo
|
|
// jvm signature: (Ljava/util/List;)V
|
|
// generic signature: (Ljava/util/List<LFoo;>;)V
|