Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2b455fc1ba7dcb99fa03fdfc31c7672d6ccfc9fd
/
.
/
compiler
/
testData
/
codegen
/
box
/
inlineClasses
/
fieldNameClash.kt
blob: 3e325b6d1dda5a90ecdda474c3dbbf5338146d23 [
file
]
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
OPTIONAL_JVM_INLINE_ANNOTATION
value
class
Z
(
val s
:
String
)
{
val
Int
.
s
:
Int
get
()
=
42
}
fun box
():
String
{
if
(
Z
(
"a"
).
toString
()
==
"Z(s=a)"
)
return
"OK"
return
"Fail"
}