Quick-Fixes: Fix type checking scope for type mismatch in call argument
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user