QuickFix: change type of constructor parameter to match value argument in invocation

This commit is contained in:
Wojciech Lopata
2013-05-16 00:43:26 +02:00
parent c6a378f4fb
commit 2a97617880
8 changed files with 47 additions and 24 deletions
@@ -0,0 +1,5 @@
// "Change parameter 'a' type of primary constructor of class 'B' to 'String'" "true"
class B(val a: String)
fun foo() {
B(if (true) ""<caret> else "")
}
@@ -0,0 +1,5 @@
// "Change parameter 'a' type of primary constructor of class 'B' to 'String'" "true"
class B(val a: Int)
fun foo() {
B(if (true) ""<caret> else "")
}