Support default parameters of inline type with generic underlying value
#KT-32162
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class A<T: Int>(val i: T) {
|
||||
fun foo(s: String = "OK") = s
|
||||
}
|
||||
|
||||
fun box() = A(42).foo()
|
||||
Reference in New Issue
Block a user