Skip to content

Commit

Permalink
[FIR2IR] Unset isLateinit flag for properties implemented by delega…
Browse files Browse the repository at this point in the history
…tion

^KT-70417 Fixed
  • Loading branch information
demiurg906 authored and qodana-bot committed Aug 8, 2024
1 parent 5607bd3 commit 565a35c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class Fir2IrDelegatedMembersGenerationStrategy(
overridableMember.updateDeclarationHeader()
overridableMember.getter?.updateDeclarationHeader()
overridableMember.setter?.updateDeclarationHeader()
overridableMember.isLateinit = false
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MODULE main
CLASS D.class
CLASS METADATA
PROPERTY getX()Ljava/lang/String;
Property: class.metadata.property.setterValueParameter
K1
<anonymous parameter 0>: kotlin/String
K2
_: kotlin/String
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// IGNORE_BACKEND_K2: JVM_IR
// ISSUE: KT-70417
// JVM_ABI_K1_K2_DIFF: difference in name of anonymous parameter `_` of setter

interface A {
var x: String
Expand Down

0 comments on commit 565a35c

Please sign in to comment.