Change Signature: Represent parameter/receiver types using KotlinTypeInfo
This commit is contained in:
+1
-1
@@ -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
-1
@@ -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)
|
||||
+2
-2
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user