Collect local declarations under properties (KT-14215); improve presentation of object declarations
#KT-14215 Fixed
This commit is contained in:
@@ -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
@@ -19,7 +19,8 @@
|
||||
a: Int
|
||||
a: Int
|
||||
a: String on Comparable<T>
|
||||
b: Any
|
||||
-b: Any
|
||||
object
|
||||
-Enum1
|
||||
FIRST
|
||||
SECOND
|
||||
|
||||
Reference in New Issue
Block a user