Remove some legacy codegen tests, move some to generated
This commit is contained in:
committed by
Alexander Udalov
parent
f8dfaf4599
commit
bab127ad33
-6
@@ -1,6 +0,0 @@
|
||||
enum class State {
|
||||
O,
|
||||
K
|
||||
}
|
||||
|
||||
fun box() = "${State.O.name}${State.K.name}"
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
fun box() = IssueState.DEFAULT.ToString() + IssueState.FIXED.ToString()
|
||||
|
||||
enum class IssueState {
|
||||
DEFAULT,
|
||||
FIXED {
|
||||
override fun ToString() = "K"
|
||||
};
|
||||
|
||||
open fun ToString() : String = "O"
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
enum class Season {
|
||||
WINTER,
|
||||
SPRING,
|
||||
SUMMER,
|
||||
AUTUMN
|
||||
}
|
||||
|
||||
fun foo(): Season = Season.SPRING
|
||||
|
||||
fun box() =
|
||||
if (foo() == Season.SPRING) "OK"
|
||||
else "fail"
|
||||
Reference in New Issue
Block a user