Propagate annotations when performing substitution on constructors #KT-7608 Fixed

Tests for deprecated warning on generic constructor.
This commit is contained in:
Ilya Ryzhenkov
2015-04-28 18:18:57 +03:00
parent 1fc742ffeb
commit 35e82d4574
4 changed files with 31 additions and 1 deletions
@@ -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)