PSI2IR: For implicit function return, use expression's end offset as start offset of the IrReturn to generarate correct line number.

This commit is contained in:
Jiaxiang Chen
2019-11-18 13:30:07 -08:00
committed by Ilmir Usmanov
parent e49431a12c
commit 0441e484a6
6 changed files with 11 additions and 14 deletions
@@ -20,9 +20,6 @@ fun bar(x: Int) =
foo(x)
}
// IGNORE_BACKEND: JVM_IR
// IR backend has bar().12 replaced as bar().8 for returning bar() function result.
// LINENUMBERS
// TestKt.box():4
// FooKt.foo(int):4