Fix for EA-68569 with a test. #EA-68569 Fixed
This commit is contained in:
@@ -284,8 +284,8 @@ public class PropertyCodegen {
|
||||
}
|
||||
|
||||
private void generatePropertyDelegateAccess(JetProperty p, PropertyDescriptor propertyDescriptor) {
|
||||
assert p.getDelegateExpression() != null: "Property must have a delegate expression here";
|
||||
JetType delegateType = bindingContext.getType(p.getDelegateExpression());
|
||||
JetExpression delegateExpression = p.getDelegateExpression();
|
||||
JetType delegateType = delegateExpression != null ? bindingContext.getType(p.getDelegateExpression()) : null;
|
||||
if (delegateType == null) {
|
||||
// If delegate expression is unresolved reference
|
||||
delegateType = ErrorUtils.createErrorType("Delegate type");
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
class Some<caret>() {
|
||||
val renderer by
|
||||
}
|
||||
@@ -119,6 +119,10 @@ public class JetJavaFacadeTest extends JetLightCodeInsightFixtureTestCase {
|
||||
doTestWrapClass();
|
||||
}
|
||||
|
||||
public void testEa68569() {
|
||||
doTestWrapClass();
|
||||
}
|
||||
|
||||
public void testWrapTopLevelFunWithDefaultParams() {
|
||||
doTestWrapMethod(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user