Change Signature: Fix detection of conflicts in generic classes

This commit is contained in:
Alexey Sedunov
2014-10-01 15:08:13 +04:00
parent 609caa8159
commit 73fc984c4c
6 changed files with 79 additions and 6 deletions
@@ -0,0 +1,12 @@
public fun foo<T: Any>(<caret>_x1: T? = null, _x2: Double?, _x3: ((T) -> T)?) {
foo(2, 3.5, null);
val y1 = _x1;
val y2 = _x2;
val y3 = _x3;
foo(_x3 = null, _x1 = 2, _x2 = 3.5);
}
fun bar() {
foo(_x1 = 2, _x2 = 3.5, _x3 = null);
foo(_x3 = null, _x1 = 2, _x2 = 3.5);
}