Noarg: prohibit noarg for inner and local classes
Report warning if old JVM backend is used, and error for JVM IR, which is supposed to be enabled as default in the next Kotlin release. #KT-43725 Fixed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
annotation class NoArg
|
||||
|
||||
class Outer {
|
||||
@NoArg
|
||||
inner class <!NOARG_ON_INNER_CLASS!>Inner<!>(val b: Any)
|
||||
}
|
||||
|
||||
fun local() {
|
||||
@NoArg
|
||||
class <!NOARG_ON_LOCAL_CLASS!>Local<!>(val l: Any) {
|
||||
@NoArg
|
||||
inner class <!NOARG_ON_INNER_CLASS!>InnerLocal<!>(val x: Any)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user