Support inline for simple extension function case.

This commit is contained in:
Pavel V. Talanov
2012-03-28 19:03:54 +04:00
parent b80b7a9050
commit fd1d6e8dfc
3 changed files with 45 additions and 17 deletions
@@ -54,6 +54,14 @@ public final class InlineTest extends SingleFileTranslationTest {
checkFooBoxIsTrueAndFunctionNameIsNotReferenced("methodWithReferenceToThis.kt", "myInlineMethod");
}
public void testMethodWithIndirectlyReferencedThis() throws Exception {
checkFooBoxIsTrueAndFunctionNameIsNotReferenced("methodWithIndirectlyReferencedThis.kt", "myInlineMethod");
}
public void testExtension() throws Exception {
checkFooBoxIsTrueAndFunctionNameIsNotReferenced("extension.kt", "myInlineExtension");
}
private void checkFooBoxIsTrueAndFunctionNameIsNotReferenced(@NotNull String filename, String funName) throws Exception {
checkFooBoxIsTrue(filename);
String generatedJSFilePath = getOutputFilePath(filename);