Propagate annotations when performing substitution on constructors #KT-7608 Fixed
Tests for deprecated warning on generic constructor.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// !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)
|
||||
Reference in New Issue
Block a user