"Add not-null asserted (!!) call": add '!!' to receiver of function reference
#KT-37841 Fixed
This commit is contained in:
committed by
igoriakovlev
parent
5e5e19f482
commit
35459d2ca7
@@ -0,0 +1,12 @@
|
||||
// "Add non-null asserted (!!) call" "true"
|
||||
class Foo {
|
||||
val bar = Bar()
|
||||
}
|
||||
|
||||
class Bar {
|
||||
fun f() = 1
|
||||
}
|
||||
|
||||
fun test(foo: Foo?) {
|
||||
val f = foo?.bar::f<caret>
|
||||
}
|
||||
Reference in New Issue
Block a user