Converting object literal to class allows to choose a name (KT-19254)

This commit is contained in:
Nicolay Mitropolsky
2019-01-08 14:33:32 +03:00
parent a9afee77d7
commit 41b6bcf8c3
8 changed files with 47 additions and 33 deletions
@@ -2,10 +2,10 @@ class Test { // TARGET_BLOCK:
var field = 1
fun foo() {
O()
Runnable1()
}
inner class O : Runnable {
inner class Runnable1 : Runnable {
override fun run() {
field = 2
}