Infer suspend flag for local delegated property accessors
Local delegated property accessors calling suspend operators getValue or setValue should be suspend functions themselves. KT-17605 Getter and setter of suspend delegated property are not suspend
This commit is contained in:
@@ -257,6 +257,12 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyWithSuspendOperators.kt")
|
||||
public void testLocalDelegatedPropertyWithSuspendOperators() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("packageLevelProperties.kt")
|
||||
public void testPackageLevelProperties() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/packageLevelProperties.kt");
|
||||
|
||||
Reference in New Issue
Block a user