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:
Alexander Udalov
2020-11-26 17:44:29 +01:00
parent a343fffe9e
commit a06bffc4b9
13 changed files with 177 additions and 21 deletions
@@ -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)
}
}