[FIR-TEST] Add new testdata generated after changes in previous commit

This commit is contained in:
Dmitriy Novozhilov
2019-12-11 16:16:22 +03:00
parent e9c02a1cca
commit 2536fa0cd5
4578 changed files with 104067 additions and 1 deletions
@@ -0,0 +1,40 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
enum class A {
W(1), X(1, 2), Y(3.0), Z(""), E();
constructor()
constructor(x: Int)
constructor(x: Int, y: Int): this(x+y)
constructor(x: Double): this(x.toInt(), 1)
constructor(x: String): <!INAPPLICABLE_CANDIDATE!>super<!>(x, 1)
}
enum class B(x: Int) {
W(1), X(1, 2), Y(3.0), Z("");
constructor(x: Int, y: Int): this(x+y)
constructor(x: Double): this(x.toInt(), 1)
constructor(x: String): <!INAPPLICABLE_CANDIDATE!>super<!>(x, 1)
}
enum class C {
EMPTY(); // may be we should avoid explicit call here
constructor()
}
enum class D(val prop: Int) {
X(123) {
override fun f() = 1
},
Y() {
override fun f() = prop
},
Z("abc") {
override fun f() = prop
};
constructor(): this(1)
constructor(x: String): this(x.length)
abstract fun f(): Int
}