Delegation and nullability turned into capabilities
Otherwise they did not sustain substitutions
This commit is contained in:
@@ -11,8 +11,8 @@ fun test(d: dynamic) {
|
||||
val v3 = d.foo(1, "")
|
||||
v3.isDynamic() // to check that anything is resolvable
|
||||
|
||||
// val v4 = d.foo<String>()
|
||||
// v4.isDynamic() // to check that anything is resolvable
|
||||
val v4 = d.foo<String>()
|
||||
v4.isDynamic() // to check that anything is resolvable
|
||||
|
||||
val v5 = d.foo
|
||||
v5.isDynamic() // to check that anything is resolvable
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// MODULE[js]: m1
|
||||
// FILE: k.kt
|
||||
|
||||
fun test(d: dynamic) {
|
||||
val v1 = d?.foo()
|
||||
v1.isDynamic() // to check that anything is resolvable
|
||||
|
||||
val v2 = d!!.foo(1)
|
||||
v2.isDynamic() // to check that anything is resolvable
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
internal fun test(/*0*/ d: dynamic): kotlin.Unit
|
||||
@@ -11,8 +11,8 @@ fun (dynamic).test() {
|
||||
val v3 = foo(1, "")
|
||||
v3.isDynamic() // to check that anything is resolvable
|
||||
|
||||
// val v4 = foo<String>()
|
||||
// v4.isDynamic() // to check that anything is resolvable
|
||||
val v4 = foo<String>()
|
||||
v4.isDynamic() // to check that anything is resolvable
|
||||
|
||||
val v5 = foo
|
||||
v5.isDynamic() // to check that anything is resolvable
|
||||
|
||||
Reference in New Issue
Block a user