Escape special names with backticks in test data
#KT-51248
This commit is contained in:
committed by
Space
parent
4de9de5fc5
commit
918a91dbdf
Vendored
+1
-1
@@ -9,7 +9,7 @@ public final class A {
|
||||
public companion object Companion {
|
||||
/*primary*/ private constructor Companion()
|
||||
public final val TEST: kotlin.Int
|
||||
public final fun <get-TEST>(): kotlin.Int
|
||||
public final fun `<get-TEST>`(): kotlin.Int
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package test
|
||||
public final data class My {
|
||||
/*primary*/ public constructor My(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final fun <get-x>(): kotlin.Int
|
||||
public final fun `<get-x>`(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): test.My
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package test
|
||||
public final annotation class Anno : kotlin.Annotation {
|
||||
/*primary*/ public constructor Anno(/*0*/ t: java.lang.annotation.ElementType)
|
||||
public final val t: java.lang.annotation.ElementType
|
||||
public final fun <get-t>(): java.lang.annotation.ElementType
|
||||
public final fun `<get-t>`(): java.lang.annotation.ElementType
|
||||
}
|
||||
|
||||
@test.Anno(t = ElementType.METHOD) public final class Class {
|
||||
|
||||
+8
-8
@@ -3,19 +3,19 @@ package test
|
||||
public final annotation class BooleanAnno : kotlin.Annotation {
|
||||
/*primary*/ public constructor BooleanAnno(/*0*/ value: kotlin.Boolean)
|
||||
public final val value: kotlin.Boolean
|
||||
public final fun <get-value>(): kotlin.Boolean
|
||||
public final fun `<get-value>`(): kotlin.Boolean
|
||||
}
|
||||
|
||||
public final annotation class ByteAnno : kotlin.Annotation {
|
||||
/*primary*/ public constructor ByteAnno(/*0*/ value: kotlin.Byte)
|
||||
public final val value: kotlin.Byte
|
||||
public final fun <get-value>(): kotlin.Byte
|
||||
public final fun `<get-value>`(): kotlin.Byte
|
||||
}
|
||||
|
||||
public final annotation class CharAnno : kotlin.Annotation {
|
||||
/*primary*/ public constructor CharAnno(/*0*/ value: kotlin.Char)
|
||||
public final val value: kotlin.Char
|
||||
public final fun <get-value>(): kotlin.Char
|
||||
public final fun `<get-value>`(): kotlin.Char
|
||||
}
|
||||
|
||||
@test.IntAnno(value = 42) @test.ShortAnno(value = 42.toShort()) @test.ByteAnno(value = 42.toByte()) @test.LongAnno(value = 42.toLong()) @test.CharAnno(value = \u0041 ('A')) @test.BooleanAnno(value = false) @test.FloatAnno(value = 3.14.toFloat()) @test.DoubleAnno(value = 3.14.toDouble()) public final class Class {
|
||||
@@ -25,29 +25,29 @@ public final annotation class CharAnno : kotlin.Annotation {
|
||||
public final annotation class DoubleAnno : kotlin.Annotation {
|
||||
/*primary*/ public constructor DoubleAnno(/*0*/ value: kotlin.Double)
|
||||
public final val value: kotlin.Double
|
||||
public final fun <get-value>(): kotlin.Double
|
||||
public final fun `<get-value>`(): kotlin.Double
|
||||
}
|
||||
|
||||
public final annotation class FloatAnno : kotlin.Annotation {
|
||||
/*primary*/ public constructor FloatAnno(/*0*/ value: kotlin.Float)
|
||||
public final val value: kotlin.Float
|
||||
public final fun <get-value>(): kotlin.Float
|
||||
public final fun `<get-value>`(): kotlin.Float
|
||||
}
|
||||
|
||||
public final annotation class IntAnno : kotlin.Annotation {
|
||||
/*primary*/ public constructor IntAnno(/*0*/ value: kotlin.Int)
|
||||
public final val value: kotlin.Int
|
||||
public final fun <get-value>(): kotlin.Int
|
||||
public final fun `<get-value>`(): kotlin.Int
|
||||
}
|
||||
|
||||
public final annotation class LongAnno : kotlin.Annotation {
|
||||
/*primary*/ public constructor LongAnno(/*0*/ value: kotlin.Long)
|
||||
public final val value: kotlin.Long
|
||||
public final fun <get-value>(): kotlin.Long
|
||||
public final fun `<get-value>`(): kotlin.Long
|
||||
}
|
||||
|
||||
public final annotation class ShortAnno : kotlin.Annotation {
|
||||
/*primary*/ public constructor ShortAnno(/*0*/ value: kotlin.Short)
|
||||
public final val value: kotlin.Short
|
||||
public final fun <get-value>(): kotlin.Short
|
||||
public final fun `<get-value>`(): kotlin.Short
|
||||
}
|
||||
|
||||
+3
-3
@@ -3,11 +3,11 @@ package test
|
||||
public final annotation class Anno : kotlin.Annotation {
|
||||
/*primary*/ public constructor Anno(/*0*/ int: kotlin.Int, /*1*/ string: kotlin.String, /*2*/ double: kotlin.Double)
|
||||
public final val double: kotlin.Double
|
||||
public final fun <get-double>(): kotlin.Double
|
||||
public final fun `<get-double>`(): kotlin.Double
|
||||
public final val int: kotlin.Int
|
||||
public final fun <get-int>(): kotlin.Int
|
||||
public final fun `<get-int>`(): kotlin.Int
|
||||
public final val string: kotlin.String
|
||||
public final fun <get-string>(): kotlin.String
|
||||
public final fun `<get-string>`(): kotlin.String
|
||||
}
|
||||
|
||||
@test.Anno(double = 3.14.toDouble(), int = 42, string = "OK") public final class Class {
|
||||
|
||||
Reference in New Issue
Block a user