Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ba045e44fbc13a4a8bcfa03689115fd0a25366a9
/
.
/
idea
/
testData
/
quickfix
/
deprecatedSymbolUsage
/
usageInDerivedClassGeneric.kt
blob: 4b7a9d2fc41a424f5156696d8a5dbe6d5fa706e4 [
file
] [
log
] [
blame
]
// "Replace with 'newFun(t, k)'" "true"
open
class
Base
<
T
>
{
@Deprecated
(
""
,
ReplaceWith
(
"newFun(t, k)"
))
fun
<
K
>
oldFun
(
t
:
T
,
k
:
K
)
=
k
fun
<
K
>
newFun
(
t
:
T
,
k
:
K
)
=
k
}
class
Derived
:
Base
<
String
>()
{
fun foo
()
{
<caret>
oldFun
(
"a"
,
1
)
}
}