Create From Usage: Generate Unit-typed declaration if result is unused

#KT-5903 Fixed
This commit is contained in:
Alexey Sedunov
2014-10-03 16:42:44 +04:00
parent a3a0edca58
commit 497e4fab79
9 changed files with 66 additions and 16 deletions
@@ -0,0 +1,9 @@
// "Create function 'foo' from usage" "true"
fun test() {
foo(2, "2")
}
fun foo(i: Int, s: String) {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}