Parameter <-> Receiver Conversion: Support header/impl declarations
#KT-18907 Fixed
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// "Convert parameter to receiver" "true"
|
||||
|
||||
header class Foo {
|
||||
fun String.foo(n: Int)
|
||||
}
|
||||
|
||||
fun Foo.test() {
|
||||
"2".foo(1)
|
||||
}
|
||||
Reference in New Issue
Block a user