Add actual: handle already existing declarations more precisely
#KT-23693 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect object O {
|
||||
fun <T : Any> hello(): MutableMap<String, T>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect object O {
|
||||
fun <T : Any> hello(): MutableMap<String, T>
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual object <caret>O {
|
||||
fun <T> hello(): MutableMap<String, T> {
|
||||
TODO("not implemented")
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual object O {
|
||||
fun <T> hello(): MutableMap<String, T> {
|
||||
TODO("not implemented")
|
||||
}
|
||||
|
||||
actual fun <T : Any> hello(): MutableMap<String, T> {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user