Inline function: add extra tests taken from intellij-community
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// ERROR: Cannot perform refactoring.\nInline Function is not supported for functions with return statements not at the end of the body.
|
||||
|
||||
class A {
|
||||
init {
|
||||
g()
|
||||
}
|
||||
|
||||
fun <caret>g(): Int {
|
||||
try {
|
||||
return 0
|
||||
}
|
||||
catch (e: Error) {
|
||||
throw e
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user