Allow dynamic types only in some contexts
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
// !CHECK_TYPE
|
||||
|
||||
// MODULE[js]: m1
|
||||
// FILE: k.kt
|
||||
|
||||
fun foo(d: dynamic) {
|
||||
val s: String = d
|
||||
val d1: dynamic = ""
|
||||
val d2: dynamic = null
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
internal fun foo(/*0*/ d: (kotlin.Nothing..kotlin.Any?)): kotlin.Unit
|
||||
@@ -0,0 +1 @@
|
||||
val foo: <!UNSUPPORTED!>dynamic<!> = 1
|
||||
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
internal val foo: dynamic = 1
|
||||
Reference in New Issue
Block a user