Fix testdata after advancing LATEST_STABLE to 1.3
This commit contains minor changes in testdata, where test and behavior change are not related
This commit is contained in:
committed by
Ilya Gorbunov
parent
4dfb99596b
commit
b064c48f83
-1
@@ -1,4 +1,3 @@
|
||||
warning: language version 1.3 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
compiler/testData/cli/jvm/kt19628_13.kt:5:29: error: unresolved reference: CollapsedStringAdapter
|
||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
||||
^
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ enum class IssueState {
|
||||
|
||||
fun s() = "OK"
|
||||
|
||||
class D {
|
||||
inner class D {
|
||||
val k = s()
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// !LANGUAGE: -NestedClassesInEnumEntryShouldBeInner
|
||||
|
||||
enum class E {
|
||||
ENTRY,
|
||||
SUBCLASS {
|
||||
|
||||
+3
-3
@@ -25,7 +25,7 @@ fun box(): String {
|
||||
|
||||
result = ""
|
||||
invokeOrder = ""
|
||||
result = inlineFun(constraints = { invokeOrder += "constraints";A("C") }(),
|
||||
result = inlineFun(constraints = *arrayOf({ invokeOrder += "constraints";A("C") }()),
|
||||
receiver = { invokeOrder += " receiver"; "R" }(),
|
||||
init = { invokeOrder += " init"; "I" }())
|
||||
if (result != "C, R, I") return "fail 1: $result"
|
||||
@@ -36,7 +36,7 @@ fun box(): String {
|
||||
result = ""
|
||||
invokeOrder = ""
|
||||
result = inlineFun(init = { invokeOrder += "init"; "I" }(),
|
||||
constraints = { invokeOrder += "constraints";A("C") }(),
|
||||
constraints = *arrayOf({ invokeOrder += "constraints";A("C") }()),
|
||||
receiver = { invokeOrder += " receiver"; "R" }()
|
||||
)
|
||||
if (result != "C, R, I") return "fail 3: $result"
|
||||
@@ -46,7 +46,7 @@ fun box(): String {
|
||||
result = ""
|
||||
invokeOrder = ""
|
||||
result = inlineFun(init = { invokeOrder += "init"; "I" }(),
|
||||
constraints = { invokeOrder += " constraints";A("C") }())
|
||||
constraints = *arrayOf({ invokeOrder += " constraints";A("C") }()))
|
||||
if (result != "C, DEFAULT, I") return "fail 5: $result"
|
||||
if (invokeOrder != "init constraints default receiver") return "fail 6: $invokeOrder"
|
||||
|
||||
|
||||
+3
-3
@@ -26,7 +26,7 @@ fun box(): String {
|
||||
|
||||
result = ""
|
||||
invokeOrder = ""
|
||||
result = inlineFun(constraints = { invokeOrder += "constraints";A("C") }(),
|
||||
result = inlineFun(constraints = *arrayOf({ invokeOrder += "constraints";A("C") }()),
|
||||
receiver = { invokeOrder += " receiver"; "R" }(),
|
||||
init = { invokeOrder += " init"; "I" }())
|
||||
if (result != "C, R, I") return "fail 1: $result"
|
||||
@@ -37,7 +37,7 @@ fun box(): String {
|
||||
result = ""
|
||||
invokeOrder = ""
|
||||
result = inlineFun(init = { invokeOrder += "init"; "I" }(),
|
||||
constraints = { invokeOrder += "constraints";A("C") }(),
|
||||
constraints = *arrayOf({ invokeOrder += "constraints";A("C") }()),
|
||||
receiver = { invokeOrder += " receiver"; "R" }()
|
||||
)
|
||||
if (result != "C, R, I") return "fail 3: $result"
|
||||
@@ -47,7 +47,7 @@ fun box(): String {
|
||||
result = ""
|
||||
invokeOrder = ""
|
||||
result = inlineFun(init = { invokeOrder += "init"; "I" }(),
|
||||
constraints = { invokeOrder += " constraints";A("C") }())
|
||||
constraints = *arrayOf({ invokeOrder += " constraints";A("C") }()))
|
||||
if (result != "C, DEFAULT, I") return "fail 5: $result"
|
||||
if (invokeOrder != "init constraints default receiver") return "fail 6: $invokeOrder"
|
||||
|
||||
|
||||
-1
@@ -7,5 +7,4 @@ This mode is not recommended for production use,
|
||||
as no stability/compatibility guarantees are given on
|
||||
compiler or generated code. Use it at your own risk!
|
||||
|
||||
warning: following manually enabled features will force generation of pre-release binaries: InlineClasses
|
||||
OK
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// KT-9051: Allow smart cast for captured variables if they are not modified
|
||||
|
||||
fun foo(y: String) {
|
||||
var x: String? = null
|
||||
var x: String? = <!VARIABLE_WITH_REDUNDANT_INITIALIZER!>null<!>
|
||||
y.let { x = it }
|
||||
x<!UNSAFE_CALL!>.<!>length // Smart cast is not possible
|
||||
}
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
-- Common --
|
||||
Exit code: OK
|
||||
Output:
|
||||
compiler/testData/multiplatform/inlineClasses/common.kt:3:8: warning: the feature "inline classes" is experimental
|
||||
expect inline class Foo1(val x: Int)
|
||||
^
|
||||
compiler/testData/multiplatform/inlineClasses/common.kt:4:8: warning: the feature "inline classes" is experimental
|
||||
expect inline class Foo2(val y: String)
|
||||
^
|
||||
|
||||
-- JVM --
|
||||
Exit code: COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user