[Wasm] stdlib API: Mark primitives constructor properties as private
These are implementation detail and were not meant to be public
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: WASM
|
|
||||||
// FILE: 1.kt
|
// FILE: 1.kt
|
||||||
package test
|
package test
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import kotlin.wasm.internal.*
|
|||||||
*/
|
*/
|
||||||
@WasmAutoboxed
|
@WasmAutoboxed
|
||||||
@Suppress("NOTHING_TO_INLINE")
|
@Suppress("NOTHING_TO_INLINE")
|
||||||
public class Char private constructor(public val value: Char) : Comparable<Char> {
|
public class Char private constructor(private val value: Char) : Comparable<Char> {
|
||||||
/**
|
/**
|
||||||
* Compares this value with the specified value for order.
|
* Compares this value with the specified value for order.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import kotlin.wasm.internal.*
|
|||||||
* Represents a 8-bit signed integer.
|
* Represents a 8-bit signed integer.
|
||||||
*/
|
*/
|
||||||
@WasmAutoboxed
|
@WasmAutoboxed
|
||||||
public class Byte private constructor(public val value: Byte) : Number(), Comparable<Byte> {
|
public class Byte private constructor(private val value: Byte) : Number(), Comparable<Byte> {
|
||||||
public companion object {
|
public companion object {
|
||||||
/**
|
/**
|
||||||
* A constant holding the minimum value an instance of Byte can have.
|
* A constant holding the minimum value an instance of Byte can have.
|
||||||
@@ -382,7 +382,7 @@ public class Byte private constructor(public val value: Byte) : Number(), Compar
|
|||||||
* Represents a 16-bit signed integer.
|
* Represents a 16-bit signed integer.
|
||||||
*/
|
*/
|
||||||
@WasmAutoboxed
|
@WasmAutoboxed
|
||||||
public class Short private constructor(public val value: Short) : Number(), Comparable<Short> {
|
public class Short private constructor(private val value: Short) : Number(), Comparable<Short> {
|
||||||
public companion object {
|
public companion object {
|
||||||
/**
|
/**
|
||||||
* A constant holding the minimum value an instance of Short can have.
|
* A constant holding the minimum value an instance of Short can have.
|
||||||
@@ -760,7 +760,7 @@ public class Short private constructor(public val value: Short) : Number(), Comp
|
|||||||
* Represents a 32-bit signed integer.
|
* Represents a 32-bit signed integer.
|
||||||
*/
|
*/
|
||||||
@WasmAutoboxed
|
@WasmAutoboxed
|
||||||
public class Int private constructor(val value: Int) : Number(), Comparable<Int> {
|
public class Int private constructor(private val value: Int) : Number(), Comparable<Int> {
|
||||||
|
|
||||||
public companion object {
|
public companion object {
|
||||||
/**
|
/**
|
||||||
@@ -1210,7 +1210,7 @@ public class Int private constructor(val value: Int) : Number(), Comparable<Int>
|
|||||||
* Represents a 64-bit signed integer.
|
* Represents a 64-bit signed integer.
|
||||||
*/
|
*/
|
||||||
@WasmAutoboxed
|
@WasmAutoboxed
|
||||||
public class Long private constructor(val value: Long) : Number(), Comparable<Long> {
|
public class Long private constructor(private val value: Long) : Number(), Comparable<Long> {
|
||||||
|
|
||||||
public companion object {
|
public companion object {
|
||||||
/**
|
/**
|
||||||
@@ -1643,7 +1643,7 @@ public class Long private constructor(val value: Long) : Number(), Comparable<Lo
|
|||||||
* Represents a single-precision 32-bit IEEE 754 floating point number.
|
* Represents a single-precision 32-bit IEEE 754 floating point number.
|
||||||
*/
|
*/
|
||||||
@WasmAutoboxed
|
@WasmAutoboxed
|
||||||
public class Float private constructor(public val value: Float) : Number(), Comparable<Float> {
|
public class Float private constructor(private val value: Float) : Number(), Comparable<Float> {
|
||||||
|
|
||||||
public companion object {
|
public companion object {
|
||||||
/**
|
/**
|
||||||
@@ -1983,7 +1983,7 @@ public class Float private constructor(public val value: Float) : Number(), Comp
|
|||||||
* Represents a double-precision 64-bit IEEE 754 floating point number.
|
* Represents a double-precision 64-bit IEEE 754 floating point number.
|
||||||
*/
|
*/
|
||||||
@WasmAutoboxed
|
@WasmAutoboxed
|
||||||
public class Double private constructor(public val value: Double) : Number(), Comparable<Double> {
|
public class Double private constructor(private val value: Double) : Number(), Comparable<Double> {
|
||||||
|
|
||||||
public companion object {
|
public companion object {
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user