Minor. Add more tests
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY)
|
||||
annotation class Anno
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class Z<T: String>(val s: T)
|
||||
|
||||
class A {
|
||||
@Anno
|
||||
val Z<String>.r: String get() = s
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
with(A()) {
|
||||
return Z("OK").r
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user