Change Signature: Represent parameter/receiver types using KotlinTypeInfo

This commit is contained in:
Alexey Sedunov
2015-12-16 14:42:06 +03:00
parent e558581667
commit fd79145b73
21 changed files with 205 additions and 152 deletions
@@ -2,5 +2,5 @@
// DISABLE-ERRORS
fun main(args: Array<String>) {
Test<String>().perform("") { s: String?, s1: String? -> }
Test<String>().perform("") { s: String, s1: String -> }
}
@@ -1,4 +1,4 @@
// "Create parameter 's'" "true"
// ERROR: Unresolved reference: s
internal fun foo(s: String?) = C(s)
internal fun foo(s: String) = C(s)
@@ -4,9 +4,9 @@ fun test() {
}
abstract class K0 {
abstract fun foo(c: Int, a1: A?): Int
abstract fun foo(c: Int, a1: A): Int
}
open class K: K0() {
override fun foo(c: Int, a1: A?) = a + b + c
override fun foo(c: Int, a1: A) = a + b + c
}