Create from usage: Assume String return type for function whch is called inside of string template

#KT-6083 Fixed
This commit is contained in:
Alexey Sedunov
2015-02-19 14:33:44 +03:00
parent 0ae69e0d3e
commit 41d51e0a13
10 changed files with 93 additions and 10 deletions
@@ -0,0 +1,9 @@
// "Create function 'foo'" "true"
fun test() {
println("a = ${foo()}")
}
fun foo(): String {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
@@ -0,0 +1,11 @@
// "Create function 'foo'" "true"
class A {
fun foo(): String {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
fun test() {
println("a = ${A().foo()}")
}
@@ -0,0 +1,5 @@
// "Create function 'foo'" "true"
fun test() {
println("a = ${<caret>foo()}")
}
@@ -0,0 +1,7 @@
// "Create function 'foo'" "true"
class A
fun test() {
println("a = ${A().<caret>foo()}")
}