Collect local declarations under properties (KT-14215); improve presentation of object declarations

#KT-14215 Fixed
This commit is contained in:
Dmitry Jemerov
2016-11-18 12:11:55 +01:00
parent 45077023bb
commit f4ce63f6d7
6 changed files with 39 additions and 2 deletions
@@ -0,0 +1,10 @@
-AnonymousObjectMembers.kt
-C
-bar(): Unit
-object : Runnable
run(): Unit
xyzzy(): Unit
-f: Runnable
-object : Runnable
run(): Unit
xyzzy(): Unit
@@ -0,0 +1,15 @@
class C {
val f = object : Runnable {
fun run() { }
fun xyzzy() { }
}
fun bar() {
val g = object : Runnable {
fun run() { }
fun xyzzy() { }
}
}
}
+2 -1
View File
@@ -19,7 +19,8 @@
a: Int
a: Int
a: String on Comparable<T>
b: Any
-b: Any
object
-Enum1
FIRST
SECOND