Pseudocode: Generate instructions for superclass constructor calls. Consume value of delegate expression in the by-clause
This commit is contained in:
+2
-2
@@ -21,7 +21,7 @@ fun testObjectExpression1() {
|
||||
}
|
||||
|
||||
fun testClassDeclaration() {
|
||||
class C : Foo(todo()) {}
|
||||
class C : <!UNREACHABLE_CODE!>Foo(<!>todo()<!UNREACHABLE_CODE!>)<!> {}
|
||||
|
||||
<!UNREACHABLE_CODE!>bar()<!>
|
||||
}
|
||||
@@ -33,4 +33,4 @@ fun testFunctionDefaultArgument() {
|
||||
open class Foo(i: Int) {}
|
||||
|
||||
fun todo() = throw Exception()
|
||||
fun bar() {}
|
||||
fun bar() {}
|
||||
Reference in New Issue
Block a user