Constraint system builder shouldn't drop nullability when comparing signatures for specificity.

This commit is contained in:
Dmitry Petrov
2016-03-03 16:18:04 +03:00
parent 8a2b80fe3f
commit 8660800af7
5 changed files with 38 additions and 15 deletions
@@ -1,5 +1,10 @@
fun <T> List<T>?.foo() {}
fun <T1> List<T1>?.foo() {}
// NB Not a redeclaration
@JvmName("f1")
fun <T> List<T>.foo() {}
@JvmName("foo1")
fun <T2> List<T2>.foo() {}
fun <T1> bar(x: List<T1>) = x
@JvmName("bar1")
fun <T2> bar(x: List<T2>?) = x