Intentions: Convert extension receiver to parameter and vice versa

This commit is contained in:
Alexey Sedunov
2015-01-20 13:42:53 +03:00
parent 7b6160b92f
commit cef9996ba7
31 changed files with 408 additions and 3 deletions
@@ -0,0 +1,7 @@
fun foo(<spot>s: String</spot>, n: Int): Int {
return s.length() - n
}
fun test() {
foo("1", 2)
}
@@ -0,0 +1,7 @@
fun <spot>String</spot>.foo(n: Int): Int {
return length() - n
}
fun test() {
"1".foo(2)
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention converts extension function receiver to its parameter.
</body>
</html>