Sign in
android
/
platform
/
external
/
jetbrains
/
kotlin
/
v1.3.20
/
.
/
compiler
/
testData
/
compileKotlinAgainstKotlin
/
typeAliasesKt13181.kt
blob: 101c79e0cbd37b5361a68ef2c982b41c1368f27f [
file
] [
log
] [
blame
]
// FILE: A.kt
typealias
Bar
<
T
>
=
(
T
)
->
String
class
Foo
<
out
T
>(
val t
:
T
)
{
fun baz
(
b
:
Bar
<
T
>)
=
b
(
t
)
}
// FILE: B.kt
class
FooTest
{
fun baz
():
String
{
val b
:
Bar
<
String
>
=
{
"OK"
}
return
Foo
(
""
).
baz
(
b
)
}
}
fun box
():
String
=
FooTest
().
baz
()