Map java.land.Deprecated to jet.deprecated
Change testData for deprecated annotation #KT-2947 Fixed
This commit is contained in:
@@ -2,4 +2,4 @@ import java.util.ArrayList
|
||||
|
||||
<!NONE_APPLICABLE!>ArrayList<!><Int>(1, 1) fun b() {}
|
||||
<!UNRESOLVED_REFERENCE!>Xoo<!>(<!UNRESOLVED_REFERENCE!>x<!>) fun c() {}
|
||||
Deprecated(<!TOO_MANY_ARGUMENTS, UNRESOLVED_REFERENCE!>x<!>) fun a() {}
|
||||
<!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>Deprecated<!>(<!TOO_MANY_ARGUMENTS, UNRESOLVED_REFERENCE!>x<!>) fun a() {}
|
||||
@@ -1,15 +1,15 @@
|
||||
package a
|
||||
|
||||
import java.lang.Deprecated as deprecated
|
||||
import <!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>java.lang.Deprecated<!> as deprecated
|
||||
import java.lang.SuppressWarnings as suppresswarnings
|
||||
|
||||
|
||||
deprecated suppresswarnings val s: String = "";
|
||||
<!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>deprecated<!> suppresswarnings val s: String = "";
|
||||
|
||||
deprecated suppresswarnings fun main(args : Array<String>) {
|
||||
<!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>deprecated<!> suppresswarnings fun main(args : Array<String>) {
|
||||
System.out.println("Hello, world!")
|
||||
}
|
||||
|
||||
class Test(deprecated val s: String,
|
||||
class Test(<!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>deprecated<!> val s: String,
|
||||
suppresswarnings val x : Int) {}
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
annotation [java.lang.Deprecated] class my
|
||||
annotation Deprecated class my1
|
||||
annotation [<!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>java.lang.Deprecated<!>] class my
|
||||
annotation <!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>Deprecated<!> class my1
|
||||
@@ -1,6 +1,5 @@
|
||||
import <!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>java.lang.Deprecated<!> as deprecated
|
||||
|
||||
import java.lang.Deprecated as deprecated
|
||||
<!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>Deprecated<!> fun foo() {}
|
||||
|
||||
Deprecated fun foo() {}
|
||||
|
||||
deprecated fun foo1() {}
|
||||
<!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>deprecated<!> fun foo1() {}
|
||||
|
||||
Reference in New Issue
Block a user