Files
kotlin-fork/compiler/testData/diagnostics/tests/deprecated/genericConstructorUsage.kt
T
Ilya Ryzhenkov 35e82d4574 Propagate annotations when performing substitution on constructors #KT-7608 Fixed
Tests for deprecated warning on generic constructor.
2015-04-29 14:53:40 +03:00

8 lines
222 B
Kotlin

// !DIAGNOSTICS: -UNUSED_EXPRESSION, -REFLECTION_TYPES_NOT_LOADED, -UNUSED_PARAMETER
open class C<T>() {
deprecated("")
constructor(p: Int) : this(){}
}
class D : <!DEPRECATED_SYMBOL_WITH_MESSAGE!>C<String><!>(1)