Files
kotlin-fork/compiler/testData/repl/regressions/kt6843.repl
T
Denis Zharkov dcb84a7d0a Make annotations-modifiers private and fix some lost usages
It's needed to prevent usages of them as real annotation/type.
But we can't remove them, because currently some modifiers
are artificially resolved as annotations of those classes.
2015-09-23 12:18:12 +03:00

6 lines
128 B
Plaintext
Vendored

>>> data class Person(val name: String)
>>> var x: String? = "hello"
>>> val y = x?.let { Person(it) }
>>> y
Person(name=hello)