Add actual: handle already existing declarations more precisely

#KT-23693 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-11-15 11:34:55 +03:00
parent 46a5d76254
commit 5c6f776c09
7 changed files with 56 additions and 11 deletions
@@ -0,0 +1,5 @@
// DISABLE-ERRORS
expect object O {
fun <T : Any> hello(): MutableMap<String, T>
}
@@ -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")
}
}
@@ -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.
}
}