Add test for Obsolete issue
#KT-12208 Obsolete
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
fun normalFunction() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fun inlineFunction() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
fun test1() {
|
||||||
|
inlineFunction()
|
||||||
|
test.lineNumber()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun test2() {
|
||||||
|
normalFunction()
|
||||||
|
test.lineNumber()
|
||||||
|
}
|
||||||
@@ -69,6 +69,11 @@ public class LineNumberTestGenerated extends AbstractLineNumberTest {
|
|||||||
runTest("compiler/testData/lineNumber/inlineSimpleCall.kt");
|
runTest("compiler/testData/lineNumber/inlineSimpleCall.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("lineNumberAfterInline.kt")
|
||||||
|
public void testLineNumberAfterInline() throws Exception {
|
||||||
|
runTest("compiler/testData/lineNumber/lineNumberAfterInline.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("localFunction.kt")
|
@TestMetadata("localFunction.kt")
|
||||||
public void testLocalFunction() throws Exception {
|
public void testLocalFunction() throws Exception {
|
||||||
runTest("compiler/testData/lineNumber/localFunction.kt");
|
runTest("compiler/testData/lineNumber/localFunction.kt");
|
||||||
|
|||||||
+5
@@ -69,6 +69,11 @@ public class IrLineNumberTestGenerated extends AbstractIrLineNumberTest {
|
|||||||
runTest("compiler/testData/lineNumber/inlineSimpleCall.kt");
|
runTest("compiler/testData/lineNumber/inlineSimpleCall.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("lineNumberAfterInline.kt")
|
||||||
|
public void testLineNumberAfterInline() throws Exception {
|
||||||
|
runTest("compiler/testData/lineNumber/lineNumberAfterInline.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("localFunction.kt")
|
@TestMetadata("localFunction.kt")
|
||||||
public void testLocalFunction() throws Exception {
|
public void testLocalFunction() throws Exception {
|
||||||
runTest("compiler/testData/lineNumber/localFunction.kt");
|
runTest("compiler/testData/lineNumber/localFunction.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user