[IR] Forbid MFVC primary constructors default arguments

Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com>

#KT-1179
This commit is contained in:
Evgeniy.Zhelenskiy
2022-10-20 18:36:41 +02:00
committed by Space Team
parent c6e54e6433
commit adee33d3e5
20 changed files with 111 additions and 44 deletions
@@ -0,0 +1,10 @@
// !LANGUAGE: +ValueClasses
// WITH_STDLIB
// SKIP_TXT
// WORKS_WHEN_VALUE_CLASS
// FIR_IDENTICAL
@JvmInline
value class DPoint(val x: Double, val y: Double = <!MULTI_FIELD_VALUE_CLASS_PRIMARY_CONSTRUCTOR_DEFAULT_PARAMETER!>Double.NaN<!>) {
fun f(otherDPoint: DPoint = DPoint(1.0, 2.0)) = Unit
}