[stdlib] Explicit visibility and return types: JS

Stepping test line number changes are due to changes in coroutineInternalJS.kt
This commit is contained in:
Ilya Gorbunov
2023-09-19 14:54:59 +02:00
committed by Space Team
parent 0c61ce61c3
commit 381a8fd55f
14 changed files with 33 additions and 32 deletions
+5 -5
View File
@@ -7,15 +7,15 @@ package kotlin
import kotlin.js.*
abstract class Enum<E : Enum<E>>(@kotlin.internal.IntrinsicConstEvaluation val name: String, val ordinal: Int) : Comparable<E> {
public abstract class Enum<E : Enum<E>>(@kotlin.internal.IntrinsicConstEvaluation public val name: String, public val ordinal: Int) : Comparable<E> {
final override fun compareTo(other: E) = ordinal.compareTo(other.ordinal)
final override fun compareTo(other: E): Int = ordinal.compareTo(other.ordinal)
final override fun equals(other: Any?) = this === other
final override fun equals(other: Any?): Boolean = this === other
final override fun hashCode(): Int = identityHashCode(this)
override fun toString() = name
override fun toString(): String = name
companion object
public companion object
}
+1 -1
View File
@@ -12,7 +12,7 @@ package kotlin
* implemented as instances of this class.
*/
public class String : Comparable<String>, CharSequence {
companion object {}
public companion object {}
/**
* Returns a string obtained by concatenating this string with the string representation of the given [other] object.