Put using underscored type arguments under a feature

This commit is contained in:
Victor Petukhov
2021-10-22 11:56:58 +03:00
parent 1073adbbf0
commit 5508d40371
14 changed files with 50 additions and 1 deletions
@@ -1,3 +1,4 @@
// !LANGUAGE: +PartiallySpecifiedTypeArguments
// WITH_RUNTIME
fun <K, T> foo(x: (K) -> T): Pair<K, T> = (1 as K) to (1f as T)
@@ -1,3 +1,4 @@
// !LANGUAGE: +PartiallySpecifiedTypeArguments
// WITH_RUNTIME
// TARGET_BACKEND: JVM
@@ -1,3 +1,5 @@
// !LANGUAGE: +PartiallySpecifiedTypeArguments
sealed class MyResult<out T>{
data class Success<T>(val value: T): MyResult<T>()
data class Failure(val exception: Throwable): MyResult<Nothing>()
@@ -1,3 +1,5 @@
// !LANGUAGE: +PartiallySpecifiedTypeArguments
interface RProps
open class RComponent<K, T> : Component<K, T>
interface RState
@@ -1,3 +1,4 @@
// !LANGUAGE: +PartiallySpecifiedTypeArguments
// WITH_RUNTIME
fun <K, T> foo(x: (K) -> T): Pair<K, T> = (1 as K) to (1f as T)