Skip to content

Commit

Permalink
[Test] Fixed the declaration of value class
Browse files Browse the repository at this point in the history
  • Loading branch information
k163377 committed Feb 23, 2024
1 parent 8c2e044 commit ba8ba1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

import kotlin.test.assertEquals

inline class A(val x: String)
@JvmInline
value class A(val x: String)

data class TestCtor1_1(val x: A = A("0"))
data class TestCtor1_2(val x: A? = A("0"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

import kotlin.test.assertEquals

inline class A(val x: String?)
@JvmInline
value class A(val x: String?)

data class TestCtor1_1(val x: A = A("0"))
data class TestCtor1_2(val x: A? = A("0"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

import kotlin.test.assertEquals

inline class A(val x: Int)
@JvmInline
value class A(val x: Int)

data class TestCtor1_1(val x: A = A(0))
data class TestCtor1_2(val x: A? = A(0))
Expand Down

0 comments on commit ba8ba1d

Please sign in to comment.