IR KT-46578 add IrProperty#overriddenSymbols
This commit is contained in:
committed by
teamcityserver
parent
dc9d5cdf35
commit
53c1de172f
@@ -27,6 +27,7 @@ import org.jetbrains.kotlin.descriptors.DescriptorVisibility
|
||||
import org.jetbrains.kotlin.fir.backend.ConversionTypeContext
|
||||
import org.jetbrains.kotlin.fir.backend.ConversionTypeOrigin
|
||||
import org.jetbrains.kotlin.fir.symbols.Fir2IrSimpleFunctionSymbol
|
||||
import org.jetbrains.kotlin.ir.symbols.IrPropertySymbol
|
||||
|
||||
class Fir2IrLazyProperty(
|
||||
components: Fir2IrComponents,
|
||||
@@ -183,6 +184,10 @@ class Fir2IrLazyProperty(
|
||||
}
|
||||
}
|
||||
|
||||
override var overriddenSymbols: List<IrPropertySymbol> by lazyVar(lock) {
|
||||
emptyList() // TODO calculate overridden symbols for property
|
||||
}
|
||||
|
||||
override var metadata: MetadataSource?
|
||||
get() = null
|
||||
set(_) = error("We should never need to store metadata of external declarations.")
|
||||
|
||||
Generated
+6
@@ -1508,6 +1508,12 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
|
||||
runTest("compiler/testData/ir/irText/expressions/propertyReferences.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("protectedJavaFieldRef.kt")
|
||||
public void testProtectedJavaFieldRef() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/protectedJavaFieldRef.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("references.kt")
|
||||
public void testReferences() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user