Fix detection of constructor calls and delegates in supertype specifiers
This commit is contained in:
@@ -19,6 +19,10 @@ class Client(name: String = Server.NAME): Server() {
|
||||
super<Server>.work()
|
||||
println("Client")
|
||||
}
|
||||
|
||||
class object: Server() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
object ClientObject: Server() {
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
Class/object property type (6: 21) var nextServer: Server? = new Server()
|
||||
Function return types (14: 26) fun getNextServer(): Server? {
|
||||
Function return types (36: 21) fun Any.asServer(): Server? {
|
||||
Function return types (40: 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 (32: 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 = Server.NAME) {
|
||||
Parameter type (32: 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: 43) class Client(name: String = Server.NAME): Server() {
|
||||
Supertype (23: 19) class object: Server() {
|
||||
Supertype (28: 22) object ClientObject: Server() {
|
||||
Supertype (5: 43) class Client(name: String = Server.NAME): Server() {
|
||||
Target type of 'as' operation (41: 40) return if (this is Server) this as Server else null
|
||||
Target type of 'is' operation (41: 24) return if (this is Server) this as Server else null
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Unclassified usage (24: 22) object ClientObject: Server() {
|
||||
Unclassified usage (5: 15) class Client: Server() {
|
||||
Supertype (24: 22) object ClientObject: Server() {
|
||||
Supertype (5: 15) class Client: Server() {
|
||||
Reference in New Issue
Block a user