data + open / inner / abstract / sealed are now forbidden
This commit is contained in:
committed by
Mikhail Glukhikh
parent
3725ef8cdf
commit
fff434d377
-11
@@ -1,11 +0,0 @@
|
||||
open data class A(open val x: String)
|
||||
|
||||
class B : A("Fail") {
|
||||
override val x: String = "OK"
|
||||
}
|
||||
|
||||
fun foo(a: A) = a
|
||||
|
||||
fun box(): String {
|
||||
return if ("${foo(B())}" == "A(x=OK)") "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user