blob: 1e6b9a7beef984b9d0e358251ec0d0b80c67e390 [file]
annotation class ValueContainer
@ValueContainer
class Container(private var storage: String) {
fun assign(value: String) {
storage = value
}
fun assign(container: Container) {
storage = container.storage
}
operator fun plus(value: String): Container {
return Container(storage + value)
}
}
val property = Container("foo")
fun test() {
<expr>property</expr> += "bar"
}