[stdlib] Explicit visibility and return types: JS
Stepping test line number changes are due to changes in coroutineInternalJS.kt
This commit is contained in:
committed by
Space Team
parent
0c61ce61c3
commit
381a8fd55f
@@ -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
|
||||
}
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user