Quick-Fixes: Fix type checking scope for type mismatch in call argument

This commit is contained in:
Alexey Sedunov
2015-03-30 17:54:39 +03:00
parent eb594a2897
commit 9247f4f096
7 changed files with 47 additions and 2 deletions
@@ -0,0 +1,8 @@
// "Change parameter 'n' type of function 'foo' to 'T'" "true"
fun bar<T>(t: T) {
fun foo(n: T) {
}
foo(t)
}
@@ -0,0 +1,8 @@
// "Change parameter 'n' type of function 'foo' to 'Any?'" "true"
fun foo(n: Any?) {
}
fun bar<T>(t: T) {
foo(t)
}
@@ -0,0 +1,8 @@
// "Change parameter 'n' type of function 'foo' to 'T'" "true"
fun bar<T>(t: T) {
fun foo(n: Int) {
}
foo(<caret>t)
}
@@ -0,0 +1,8 @@
// "Change parameter 'n' type of function 'foo' to 'Any?'" "true"
fun foo(n: Int) {
}
fun bar<T>(t: T) {
foo(<caret>t)
}