Require explicit type parameter specification for filterIsInstance.

This commit is contained in:
Ilya Gorbunov
2015-10-17 05:33:15 +03:00
parent a5708c9c0d
commit 551e0181dc
5 changed files with 6 additions and 6 deletions
@@ -194,7 +194,7 @@ fun specialJVM(): List<GenericFunction> {
templates add f("filterIsInstance()") {
doc { "Returns a list containing all elements that are instances of specified type parameter R." }
typeParam("reified R")
returns("List<R>")
returns("List<@kotlin.internal.NoInfer R>")
inline(true)
receiverAsterisk(true)
body {
@@ -205,7 +205,7 @@ fun specialJVM(): List<GenericFunction> {
exclude(ArraysOfPrimitives, Strings)
doc(Sequences) { "Returns a sequence containing all elements that are instances of specified type parameter R." }
returns(Sequences) { "Sequence<R>" }
returns(Sequences) { "Sequence<@kotlin.internal.NoInfer R>" }
inline(true)
receiverAsterisk(true)
body(Sequences) {