removing static type assertions work in progress
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
fun main(args: Array<String>) {
|
||||
asse<caret>rt(false, "mess": kotlin.String)
|
||||
asse<caret>rt(false, "mess" as kotlin.String)
|
||||
}
|
||||
|
||||
// WITH_RUNTIME
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun main(args: Array<String>) {
|
||||
if (!false) {
|
||||
throw AssertionError("mess": kotlin.String)
|
||||
throw AssertionError("mess" as kotlin.String)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
<caret>bar({ 2 * it }: (Int) -> Int)
|
||||
<caret>bar({ 2 * it } as (Int) -> Int)
|
||||
}
|
||||
|
||||
fun bar<T>(t: T): Int = 1
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
bar<(Int) -> Int>({ 2 * it }: (Int) -> Int)
|
||||
bar<(Int) -> Int>({ 2 * it } as (Int) -> Int)
|
||||
}
|
||||
|
||||
fun bar<T>(t: T): Int = 1
|
||||
Reference in New Issue
Block a user