KT-12868: if a property initializer is a complex expression that emits additional statements, emit these statements directly before assignment to the property, not at the beginning of constructor
This commit is contained in:
@@ -38,4 +38,12 @@ public class InitializerTest extends SingleFileTranslationTest {
|
||||
public void testDeclarationInitializedWithThrow() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testComplexPropertyInitializer() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testComplexTopLevelPropertyInitializer() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user