Support generic type parameters in 'Specify return type explicitly'
So #KT-18074 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
0af3c6542d
commit
8f9b680fc6
@@ -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>()
|
||||
Reference in New Issue
Block a user