Pseudocode: Generate fake values for Unit/Nothing-typed expressions

This commit is contained in:
Alexey Sedunov
2014-07-23 12:56:21 +04:00
parent 2d3ac9109b
commit 77bbf8f73b
72 changed files with 851 additions and 592 deletions
@@ -3,6 +3,8 @@ fun fail() : Nothing {
throw java.lang.RuntimeException()
}
---------------------
RuntimeException() <v0>: {<: Throwable} NEW: call(RuntimeException(), <init>) -> <v0>
java.lang.RuntimeException() <v0>: {<: Throwable} COPY
RuntimeException() <v0>: {<: Throwable} NEW: call(RuntimeException(), <init>) -> <v0>
java.lang.RuntimeException() <v0>: {<: Throwable} COPY
throw java.lang.RuntimeException() !<v1>: *
{ throw java.lang.RuntimeException() } !<v1>: * COPY
=====================