[FIR] Don't copy VP default values for fake overrides
In general, overrides should not contain default values, and it's better to make fake overrides be close to proper overrides as much as possible. It will be important when we begin running `FirOverrideChecker` for fake overrides. ^KT-63879 Fixed ^KT-65534
This commit is contained in:
committed by
Space Team
parent
249886fb13
commit
3b5fff5473
+9
@@ -0,0 +1,9 @@
|
||||
MODULE lib
|
||||
CLASS lib/C.class
|
||||
CLASS METADATA
|
||||
FUNCTION f(Ljava/lang/String;)Ljava/lang/String;
|
||||
Property: class.metadata.function.valueParameters
|
||||
K1
|
||||
(x: kotlin/String /* = ... */)
|
||||
K2
|
||||
(x: kotlin/String)
|
||||
@@ -1,4 +1,5 @@
|
||||
// MODULE: lib
|
||||
// JVM_ABI_K1_K2_DIFF: KT-65534
|
||||
// FILE: A.kt
|
||||
package lib
|
||||
|
||||
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
MODULE main
|
||||
CLASS DeprecatedLexicalScope.class
|
||||
CLASS METADATA
|
||||
FUNCTION getContributedDescriptors(Ljava/lang/String;)Ljava/lang/String;
|
||||
Property: class.metadata.function.valueParameters
|
||||
K1
|
||||
(s: kotlin/String)
|
||||
K2
|
||||
(s: kotlin/String /* = ... */)
|
||||
@@ -1,5 +1,3 @@
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63879
|
||||
|
||||
// FILE: lib.kt
|
||||
interface ResolutionScope {
|
||||
fun getContributedDescriptors(s: String = "OK"): String
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
MODULE main
|
||||
CLASS IC.class
|
||||
CLASS METADATA
|
||||
FUNCTION o-impl(LI;Ljava/lang/String;)Ljava/lang/String;
|
||||
Property: class.metadata.function.valueParameters
|
||||
K1
|
||||
(k: kotlin/String /* = ... */)
|
||||
K2
|
||||
(k: kotlin/String)
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JVM
|
||||
// LANGUAGE: +InlineClassImplementationByDelegation
|
||||
// JVM_ABI_K1_K2_DIFF: KT-65534
|
||||
|
||||
interface I {
|
||||
fun o(k: String = "K"): String = "O$k"
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
MODULE main
|
||||
CLASS IC.class
|
||||
CLASS METADATA
|
||||
FUNCTION o-impl(LI;Ljava/lang/String;)Ljava/lang/String;
|
||||
Property: class.metadata.function.valueParameters
|
||||
K1
|
||||
(k: kotlin/String /* = ... */)
|
||||
K2
|
||||
(k: kotlin/String)
|
||||
Vendored
+1
@@ -1,6 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JVM
|
||||
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
|
||||
// JVM_ABI_K1_K2_DIFF: KT-65534
|
||||
|
||||
interface I {
|
||||
fun o(k: String = "K"): String = "O$k"
|
||||
|
||||
Reference in New Issue
Block a user