Support generic type parameters in 'Specify return type explicitly'

So #KT-18074 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-06-15 12:16:54 +03:00
committed by Mikhail Glukhikh
parent 0af3c6542d
commit 8f9b680fc6
6 changed files with 39 additions and 2 deletions
@@ -0,0 +1,5 @@
fun <T> generic1(): T = null!!
class My<T> {
fun <caret>foo() = generic1<T>()
}
@@ -0,0 +1,5 @@
fun <T> generic1(): T = null!!
class My<T> {
fun foo(): T = generic1<T>()
}
@@ -0,0 +1,2 @@
fun <T> generic1(): T? = null
fun <T> <caret>foo() = generic1<T>()
@@ -0,0 +1,2 @@
fun <T> generic1(): T? = null
fun <T> foo(): T? = generic1<T>()