Change parameter type: Make parameter type nullable (instead of Nothing?) if null is passed as an argument

#KT-6634 Fixed
This commit is contained in:
Alexey Sedunov
2015-02-03 20:51:59 +03:00
parent 1e9f95d896
commit eac735e91a
4 changed files with 25 additions and 1 deletions
@@ -0,0 +1,8 @@
// "Change parameter 's' type of primary constructor of class 'Foo' to 'String?'" "true"
class Foo(s: String?) {
}
fun test() {
Foo(null)
}
@@ -0,0 +1,8 @@
// "Change parameter 's' type of primary constructor of class 'Foo' to 'String?'" "true"
class Foo(s: String) {
}
fun test() {
Foo(<caret>null)
}