From c2f88d883581ea8959c9a3ebfd1319cce3830338 Mon Sep 17 00:00:00 2001 From: Raphael R Date: Thu, 4 Jan 2018 14:34:54 +0100 Subject: [PATCH] Deprecation annotation was on the wrong symbol The compiler would warn > 'typealias BasicCustomer = BaseCustomer' uses 'BaseCustomer', which is deprecated. BasicCustomer is now called BaseCustomer But `BaseCustomer` is not deprecated. After the change, the warning is: > 'typealias BasicCustomer = BaseCustomer' is deprecated. BasicCustomer is now called BaseCustomer --- .../kotlinworkshop/introduction/_3Classes/_11TypeAliases.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instructor/introduction/src/main/kotlin/org/jetbrains/kotlinworkshop/introduction/_3Classes/_11TypeAliases.kt b/instructor/introduction/src/main/kotlin/org/jetbrains/kotlinworkshop/introduction/_3Classes/_11TypeAliases.kt index 53f84c9..678c3ff 100644 --- a/instructor/introduction/src/main/kotlin/org/jetbrains/kotlinworkshop/introduction/_3Classes/_11TypeAliases.kt +++ b/instructor/introduction/src/main/kotlin/org/jetbrains/kotlinworkshop/introduction/_3Classes/_11TypeAliases.kt @@ -7,9 +7,9 @@ typealias CustomerName = String // Example of using typealias for rename with @Deprecated -@Deprecated("BasicCustomer is now called BaseCustomer", replaceWith = ReplaceWith("BaseCustomer")) class BaseCustomer // before was called BasicCustomer +@Deprecated("BasicCustomer is now called BaseCustomer", replaceWith = ReplaceWith("BaseCustomer")) typealias BasicCustomer = BaseCustomer @@ -20,4 +20,4 @@ fun main(args: Array) { val customer = BasicCustomer() -} \ No newline at end of file +}