Delegation and nullability turned into capabilities

Otherwise they did not sustain substitutions
This commit is contained in:
Andrey Breslav
2014-11-13 02:55:12 +02:00
parent 845f30975d
commit d2e6767c07
7 changed files with 43 additions and 13 deletions
@@ -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