Add regression test for KT-26806
#KT-26806
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const val myPi = kotlin.math.PI
|
||||
|
||||
annotation class Anno(val d: Double)
|
||||
|
||||
@Anno(kotlin.math.PI)
|
||||
fun f() {}
|
||||
|
||||
@Anno(myPi)
|
||||
fun g() {}
|
||||
@@ -0,0 +1,13 @@
|
||||
package
|
||||
|
||||
public const val myPi: kotlin.Double = 3.141592653589793.toDouble()
|
||||
@Anno(d = 3.141592653589793.toDouble()) public fun f(): kotlin.Unit
|
||||
@Anno(d = 3.141592653589793.toDouble()) public fun g(): kotlin.Unit
|
||||
|
||||
public final annotation class Anno : kotlin.Annotation {
|
||||
public constructor Anno(/*0*/ d: kotlin.Double)
|
||||
public final val d: kotlin.Double
|
||||
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
|
||||
}
|
||||
+5
@@ -2878,6 +2878,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt2082.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26806.kt")
|
||||
public void testKt26806() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt26806.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt9345.kt")
|
||||
public void testKt9345() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt9345.kt");
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+5
@@ -2878,6 +2878,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt2082.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26806.kt")
|
||||
public void testKt26806() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt26806.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt9345.kt")
|
||||
public void testKt9345() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/regression/kt9345.kt");
|
||||
|
||||
Reference in New Issue
Block a user