Add regression test for KT-26806

#KT-26806
This commit is contained in:
Mikhail Zarechenskiy
2018-09-14 16:30:05 +03:00
parent e242a8b08b
commit 8e66dadb47
4 changed files with 32 additions and 0 deletions
@@ -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
}
@@ -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");
@@ -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");