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:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user