KT-4043 "Find usages ignores class names usages as class objects"
This commit is contained in:
@@ -2,7 +2,7 @@ package client
|
||||
|
||||
import server.Server
|
||||
|
||||
class Client: Server() {
|
||||
class Client(name: String = Server.NAME): Server() {
|
||||
var nextServer: Server? = new Server()
|
||||
val name = Server.NAME
|
||||
|
||||
@@ -25,7 +25,7 @@ object ClientObject: Server() {
|
||||
|
||||
}
|
||||
|
||||
fun Client.bar(s: Server) {
|
||||
fun Client.bar(s: Server = Server.NAME) {
|
||||
foo(s)
|
||||
}
|
||||
|
||||
|
||||
@@ -3,11 +3,13 @@ Function return types (14: 26) fun getNextServer(): Server? {
|
||||
Function return types (36: 21) fun Any.asServer(): Server? {
|
||||
Import directive (3: 15) import server.Server
|
||||
Local variable type (10: 21) val server: Server = s
|
||||
Nested class/object (28: 28) fun Client.bar(s: Server = Server.NAME) {
|
||||
Nested class/object (5: 29) class Client(name: String = Server.NAME): Server() {
|
||||
Nested class/object (7: 16) val name = Server.NAME
|
||||
Parameter type (28: 19) fun Client.bar(s: Server) {
|
||||
Parameter type (28: 19) fun Client.bar(s: Server = Server.NAME) {
|
||||
Parameter type (9: 16) fun foo(s: Server) {
|
||||
Super type qualifier (19: 15) super<Server>.work()
|
||||
Target type of 'as' operation (37: 40) return if (this is Server) this as Server else null
|
||||
Target type of 'is' operation (37: 24) return if (this is Server) this as Server else null
|
||||
Unclassified usage (24: 22) object ClientObject: Server() {
|
||||
Unclassified usage (5: 15) class Client: Server() {
|
||||
Unclassified usage (5: 43) class Client(name: String = Server.NAME): Server() {
|
||||
|
||||
@@ -2,7 +2,7 @@ package client
|
||||
|
||||
import server.Server
|
||||
|
||||
class Client: Server() {
|
||||
class Client(name: String = Server.NAME): Server() {
|
||||
var nextServer: Server? = new Server()
|
||||
val name = Server.NAME
|
||||
|
||||
@@ -25,7 +25,7 @@ object ClientObject: Server() {
|
||||
|
||||
}
|
||||
|
||||
fun Client.bar(s: Server) {
|
||||
fun Client.bar(s: Server = Server.NAME) {
|
||||
foo(s)
|
||||
}
|
||||
|
||||
|
||||
+4
-2
@@ -3,9 +3,11 @@ Function return types (14: 26) fun getNextServer(): Server? {
|
||||
Function return types (36: 21) fun Any.asServer(): Server? {
|
||||
Import directive (3: 15) import server.Server
|
||||
Local variable type (10: 21) val server: Server = s
|
||||
Nested class/object (28: 28) fun Client.bar(s: Server = Server.NAME) {
|
||||
Nested class/object (5: 29) class Client(name: String = Server.NAME): Server() {
|
||||
Nested class/object (7: 16) val name = Server.NAME
|
||||
Parameter type (28: 19) fun Client.bar(s: Server) {
|
||||
Parameter type (28: 19) fun Client.bar(s: Server = Server.NAME) {
|
||||
Parameter type (9: 16) fun foo(s: Server) {
|
||||
Super type qualifier (19: 15) super<Server>.work()
|
||||
Target type of 'as' operation (37: 40) return if (this is Server) this as Server else null
|
||||
Target type of 'is' operation (37: 24) return if (this is Server) this as Server else null
|
||||
Target type of 'is' operation (37: 24) return if (this is Server) this as Server else null
|
||||
|
||||
Reference in New Issue
Block a user