Obsolete KT-5685: VerifyError: Bad local variable type for class with inline method and optional parameters
#KT-5685 Obsolete
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
var s1 = ""
|
||||
val s2 = Measurements().measure("K") {
|
||||
s1 = "O"
|
||||
}
|
||||
|
||||
return s1 + s2
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
class Measurements
|
||||
{
|
||||
inline fun measure(key: String, logEvery: Long = -1, divisor: Int = 1, body: () -> Unit): String {
|
||||
body()
|
||||
return key
|
||||
}
|
||||
}
|
||||
+6
@@ -213,6 +213,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxCodegenT
|
||||
doTestMultiFileWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt5685.1.kt")
|
||||
public void testKt5685() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/defaultValues/kt5685.1.kt");
|
||||
doTestMultiFileWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("simpleDefaultMethod.1.kt")
|
||||
public void testSimpleDefaultMethod() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.1.kt");
|
||||
|
||||
+6
@@ -213,6 +213,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
||||
doBoxTestWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt5685.1.kt")
|
||||
public void testKt5685() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/defaultValues/kt5685.1.kt");
|
||||
doBoxTestWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("simpleDefaultMethod.1.kt")
|
||||
public void testSimpleDefaultMethod() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.1.kt");
|
||||
|
||||
Reference in New Issue
Block a user