[JS IR BE] support Char.rangeTo()
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
1 in 1.rangeTo(10)
|
1 in 1.rangeTo(10)
|
||||||
1..10
|
1..10
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
9 in 0..9
|
9 in 0..9
|
||||||
val intRange = 0..9
|
val intRange = 0..9
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
val b: Byte = 42
|
val b: Byte = 42
|
||||||
val c: Char = 'z'
|
val c: Char = 'z'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
class Cell<T>(val value: T)
|
class Cell<T>(val value: T)
|
||||||
|
|
||||||
fun box(): String =
|
fun box(): String =
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
|
|
||||||
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
|
|
||||||
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
|
|
||||||
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|
||||||
|
|||||||
Vendored
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
const val M = Char.MAX_VALUE
|
const val M = Char.MAX_VALUE
|
||||||
|
|
||||||
|
|||||||
Vendored
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
|
|
||||||
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
|
|
||||||
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
|
|
||||||
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// CHECK_CASES_COUNT: function=intFoo count=3
|
// CHECK_CASES_COUNT: function=intFoo count=3
|
||||||
// CHECK_IF_COUNT: function=intFoo count=0
|
// CHECK_IF_COUNT: function=intFoo count=0
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// EXPECTED_REACHABLE_NODES: 1333
|
// EXPECTED_REACHABLE_NODES: 1333
|
||||||
package foo
|
package foo
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// EXPECTED_REACHABLE_NODES: 1332
|
// EXPECTED_REACHABLE_NODES: 1332
|
||||||
// see KT-7683
|
// see KT-7683
|
||||||
// WhenTranslator must recognize KtWhenConditionInRange
|
// WhenTranslator must recognize KtWhenConditionInRange
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// EXPECTED_REACHABLE_NODES: 1281
|
// EXPECTED_REACHABLE_NODES: 1281
|
||||||
package foo
|
package foo
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class Char(value: Int) : Comparable<Char> {
|
|||||||
public operator fun dec(): Char = Char(value - 1)
|
public operator fun dec(): Char = Char(value - 1)
|
||||||
|
|
||||||
/** Creates a range from this value to the specified [other] value. */
|
/** Creates a range from this value to the specified [other] value. */
|
||||||
public operator fun rangeTo(other: Char): CharRange = null!! // TODO
|
public operator fun rangeTo(other: Char): CharRange = CharRange(this, other)
|
||||||
|
|
||||||
/** Returns the value of this character as a `Byte`. */
|
/** Returns the value of this character as a `Byte`. */
|
||||||
public fun toByte(): Byte = value.toByte()
|
public fun toByte(): Byte = value.toByte()
|
||||||
|
|||||||
Reference in New Issue
Block a user