Files
kotlin-fork/plugins/noarg/noarg-cli/testData/diagnostics/noNoargCtorInSuperclass.kt
T
Alexander Udalov a06bffc4b9 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
2020-12-04 22:12:58 +01:00

7 lines
139 B
Kotlin
Vendored

annotation class NoArg
open class Base(val s: String)
@NoArg
class <!NO_NOARG_CONSTRUCTOR_IN_SUPERCLASS!>Derived<!>(s: String) : Base(s)