Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
extensionFunctions
/
thisMethodInObjectLiteral.kt
blob: 905408c14e2daf6129b3e569ac1641454eaa5b11 [
file
]
// IGNORE_BACKEND_FIR: JVM_IR
class
Test
{
private
fun
<
T
:
Any
>
T
.
self
()
=
object
{
fun calc
()
:
T
{
return
this
@self
}
}
fun box
()
:
Int
{
return
1.self
().
calc
()
+
1
}
}
fun box
()
:
String
{
return
if
(
Test
().
box
()
==
2
)
"OK"
else
"fail"
}