Add test for wrapping function without body

This commit is contained in:
Nikolay Krasko
2013-05-08 12:31:00 +04:00
committed by Natalia.Ukhorskaya
parent f454a40eac
commit 0779f1bbde
2 changed files with 9 additions and 0 deletions
@@ -0,0 +1,5 @@
package some
open class Hello {
open fun <caret>hello() = "DoSomething"
}
@@ -51,6 +51,10 @@ public class JetJavaFacadeTest extends LightCodeInsightFixtureTestCase {
doTestWrapMethod(false);
}
public void testWrapFunInClassWithoutBody() {
doTestWrapMethod(true);
}
public void testWrapFunInClassObject() {
doTestWrapMethod(true);
}