Drop all tests that disable features for language version less than 3

This commit is contained in:
Ivan Kylchik
2021-12-27 15:54:18 +03:00
parent 549ea1a3b9
commit 6fc56477bf
151 changed files with 0 additions and 5673 deletions
@@ -1,15 +0,0 @@
// !LANGUAGE: -CapturedInClosureSmartCasts
fun run(f: () -> Unit) = f()
fun foo(s: String?) {
var x: String? = null
if (s != null) {
x = s
}
if (x != null) {
run {
x.hashCode()
}
}
}
@@ -1,15 +0,0 @@
// !LANGUAGE: -CapturedInClosureSmartCasts
fun run(f: () -> Unit) = f()
fun foo(s: String?) {
var x: String? = null
if (s != null) {
x = s
}
if (x != null) {
run {
<!SMARTCAST_IMPOSSIBLE!>x<!>.hashCode()
}
}
}
@@ -1,4 +0,0 @@
package
public fun foo(/*0*/ s: kotlin.String?): kotlin.Unit
public fun run(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
@@ -1,10 +0,0 @@
// !LANGUAGE: -SoundSmartCastsAfterTry
fun foo() {
var s: String?
s = "Test"
try {
s = null
} catch (ex: Exception) {}
s<!UNSAFE_CALL!>.<!>hashCode()
}
@@ -1,10 +0,0 @@
// !LANGUAGE: -SoundSmartCastsAfterTry
fun foo() {
var s: String?
s = "Test"
try {
s = null
} catch (ex: Exception) {}
<!DEBUG_INFO_SMARTCAST!>s<!>.hashCode()
}
@@ -1,3 +0,0 @@
package
public fun foo(): kotlin.Unit