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)
|
||||
@@ -0,0 +1,16 @@
|
||||
package
|
||||
|
||||
internal open class C</*0*/ T> {
|
||||
public constructor C</*0*/ T>()
|
||||
kotlin.deprecated(value = "": kotlin.String) public constructor C</*0*/ T>(/*0*/ p: kotlin.Int)
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
internal final class D : C<kotlin.String> {
|
||||
public constructor D()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user